File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/services/cloud-bench Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ data "aws_regions" "regions" {
16
16
}
17
17
18
18
locals {
19
- regions = length (var. regions ) == 0 ? data. aws_regions . regions . all_regions : var. regions
19
+ regions = length (var. regions ) == 0 ? data. aws_regions . regions . names : var. regions
20
20
}
21
21
22
22
resource "sysdig_secure_benchmark_task" "benchmark_task" {
23
23
name = " Sysdig Secure for Cloud (AWS) - ${ var . account_id } "
24
24
schedule = " 0 6 * * *"
25
25
schema = " aws_foundations_bench-1.3.0"
26
- scope = " aws.accountId = \" ${ var . account_id } \" and aws.region in (\" ${ join (" \" , \" " , local. regions )} } \" )"
26
+ scope = " aws.accountId = \" ${ var . account_id } \" and aws.region in (\" ${ join (" \" , \" " , local. regions )} \" )"
27
27
28
28
# Creation of a task requires that the Cloud Account already exists in the backend, and has `role_enabled = true`
29
29
depends_on = [sysdig_secure_cloud_account . cloud_account ]
You can’t perform that action at this time.
0 commit comments