From 526f06abb4edaf54631ea230d5b25095816e3e8f Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 28 Oct 2022 14:37:27 -0400 Subject: [PATCH] fix --- s3-flow-logs/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3-flow-logs/main.tf b/s3-flow-logs/main.tf index 21f1bee..214a19e 100644 --- a/s3-flow-logs/main.tf +++ b/s3-flow-logs/main.tf @@ -42,7 +42,7 @@ locals { account_id = var.account_id != "" ? var.account_id : data.aws_caller_identity.current.account_id - regions = [for r in tolist(data.aws_regions.current) : r if startswith(r, "us-")] + regions = [for r in tolist(data.aws_regions.current.names) : r if startswith(r, "us-")] region = data.aws_region.current.name account_environment = data.aws_arn.current.partition == "aws-us-gov" ? "gov" : "ew"