File tree Expand file tree Collapse file tree 6 files changed +48
-0
lines changed
Expand file tree Collapse file tree 6 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -338,3 +338,17 @@ resource "sysdig_secure_cloud_auth_account_component" "aws_cloud_logs" {
338338 aws_cloudformation_stack_set_instance . cloudlogs_s3_access_topic
339339 ]
340340}
341+
342+ locals {
343+ wait_duration = format (" %ds" , var. wait_after_basic_seconds )
344+ }
345+
346+ resource "time_sleep" "wait_after_ciem_basic" {
347+ count = var. wait_after_basic_seconds > 0 ? 1 : 0
348+ create_duration = local. wait_duration
349+ }
350+
351+ output "wait_after_basic" {
352+ value = var. wait_after_basic_seconds > 0 ? time_sleep. wait_after_ciem_basic : null
353+ description = " Wait handle to delay downstream operations after basic by the configured seconds."
354+ }
Original file line number Diff line number Diff line change @@ -100,3 +100,9 @@ variable "kms_key_arn" {
100100 type = string
101101 default = null
102102}
103+
104+ variable "wait_after_basic_seconds" {
105+ type = number
106+ description = " Number of seconds to wait after CIEM basic before proceeding (set to 0 to disable)."
107+ default = 30
108+ }
Original file line number Diff line number Diff line change @@ -15,5 +15,9 @@ terraform {
1515 source = " hashicorp/random"
1616 version = " >= 3.1"
1717 }
18+ time = {
19+ source = " hashicorp/time"
20+ version = " >= 0.9"
21+ }
1822 }
1923}
Original file line number Diff line number Diff line change @@ -295,3 +295,17 @@ resource "sysdig_secure_cloud_auth_account_component" "aws_event_bridge" {
295295 }
296296 })
297297}
298+
299+ locals {
300+ wait_duration = format (" %ds" , var. wait_after_basic_seconds )
301+ }
302+
303+ resource "time_sleep" "wait_after_ciem_basic" {
304+ count = var. wait_after_basic_seconds > 0 ? 1 : 0
305+ create_duration = local. wait_duration
306+ }
307+
308+ output "wait_after_basic" {
309+ value = var. wait_after_basic_seconds > 0 ? time_sleep. wait_after_ciem_basic : null
310+ description = " Wait handle to delay downstream operations after basic (e.g., CIEM) by the configured seconds."
311+ }
Original file line number Diff line number Diff line change @@ -131,3 +131,9 @@ variable "api_dest_rate_limit" {
131131 default = 300
132132 description = " Rate limit for API Destinations"
133133}
134+
135+ variable "wait_after_basic_seconds" {
136+ type = number
137+ description = " Number of seconds to wait after CIEM basic before proceeding (set to 0 to disable)."
138+ default = 30
139+ }
Original file line number Diff line number Diff line change @@ -13,5 +13,9 @@ terraform {
1313 source = " hashicorp/random"
1414 version = " >= 3.1"
1515 }
16+ time = {
17+ source = " hashicorp/time"
18+ version = " >= 0.9"
19+ }
1620 }
1721}
You can’t perform that action at this time.
0 commit comments