Skip to content

Commit 0293d23

Browse files
fix: Use correct attribute in aws datasource (#19)
* Use correct attribute in aws datasource * remove extra brace
1 parent 3a4b088 commit 0293d23

File tree

1 file changed

+2
-2
lines changed
  • modules/services/cloud-bench

1 file changed

+2
-2
lines changed

modules/services/cloud-bench/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ data "aws_regions" "regions" {
1616
}
1717

1818
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
2020
}
2121

2222
resource "sysdig_secure_benchmark_task" "benchmark_task" {
2323
name = "Sysdig Secure for Cloud (AWS) - ${var.account_id}"
2424
schedule = "0 6 * * *"
2525
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)}\")"
2727

2828
# Creation of a task requires that the Cloud Account already exists in the backend, and has `role_enabled = true`
2929
depends_on = [sysdig_secure_cloud_account.cloud_account]

0 commit comments

Comments
 (0)