From 3e03d27d9f5fea043d9042edb2d1ef9bd3976968 Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 28 Oct 2022 14:32:32 -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 23cf53e..21f1bee 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 data.aws_regions.current : r if startswith(r, "us-")] + regions = [for r in tolist(data.aws_regions.current) : r if startswith(r, "us-")] region = data.aws_region.current.name account_environment = data.aws_arn.current.partition == "aws-us-gov" ? "gov" : "ew"