We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4faa87 commit 364e3bcCopy full SHA for 364e3bc
infrastructure/terraform/modules/backend-api/module_s3bucket_download.tf
@@ -35,7 +35,7 @@ resource "aws_s3_bucket_policy" "download_bucket_policy" {
35
}
36
37
data "aws_iam_policy_document" "s3bucket_download" {
38
- count = var.cloudfront_distribution_arn != null ? 1 : 0
+ for_each = var.cloudfront_distribution_arn != null ? toset([var.cloudfront_distribution_arn]) : []
39
40
statement {
41
sid = "AllowCloudFrontServicePrincipalReadOnly"
0 commit comments