Updating terraform with s3 policy

This commit is contained in:
2020-07-17 00:32:27 +01:00
parent 9785d6648c
commit 79ebc1dc2b
5 changed files with 6 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ module "cloudfront_s3_cdn" {
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource": "arn:aws:s3:::${var.bucket_name}/*"
"Resource": "arn:aws:s3:::${module.cloudfront_s3_cdn.s3_bucket}/*"
}
]
}