Skip to content

Commit 2b22eb5

Browse files
authoredNov 26, 2022
feat: Replace hardcoded cloudfront canonical user ID in example (#96)
1 parent 436269a commit 2b22eb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎examples/complete/main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ module "acm" {
177177
#############
178178

179179
data "aws_canonical_user_id" "current" {}
180+
data "aws_cloudfront_log_delivery_canonical_user_id" "cloudfront" {}
180181

181182
module "s3_one" {
182183
source = "terraform-aws-modules/s3-bucket/aws"
@@ -199,7 +200,7 @@ module "log_bucket" {
199200
}, {
200201
type = "CanonicalUser"
201202
permission = "FULL_CONTROL"
202-
id = "c4c1ede66af53448b93c283ce9448c4ba468c9432aa01d700d3878632f77d2d0"
203+
id = data.aws_cloudfront_log_delivery_canonical_user_id.cloudfront.id
203204
# Ref. https://github.com/terraform-providers/terraform-provider-aws/issues/12512
204205
# Ref. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html
205206
}]

0 commit comments

Comments
 (0)