Skip to content

Commit

Permalink
fix: concat two list of strings then turn it into set (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
naihsuanshao authored Nov 1, 2024
1 parent cceb890 commit 8cd5290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws-iam-role-s3-readonly/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ data "aws_iam_policy_document" "s3-bucket-readonly" {
actions = [
"s3:ListAllMyBuckets"
]
resources = toset(formatlist("arn:aws:s3:::%s", var.s3_bucket_names), formatlist("arn:aws:s3:::%s/*", var.s3_bucket_names))
resources = toset(concat(formatlist("arn:aws:s3:::%s", var.s3_bucket_names), formatlist("arn:aws:s3:::%s/*", var.s3_bucket_names)))
}
}

Expand Down

0 comments on commit 8cd5290

Please sign in to comment.