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"