Skip to content

Commit 2b72cc9

Browse files
authored
Making CDN OAC unique (#12)
1 parent 4790078 commit 2b72cc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform_code/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ resource "aws_cloudfront_distribution" "cdn_static_site" {
231231
### CDN Access control
232232
resource "aws_cloudfront_origin_access_control" "default" {
233233
count = var.aws_site_cdn_enabled ? 1 : 0
234-
name = "${var.aws_resource_identifier_supershort} - Cloudfront OAC"
235-
description = "Cloudfront OAC for ${var.aws_resource_identifier}"
234+
name = "${local.s3_bucket_name}"
235+
description = "Cloudfront OAC for ${local.s3_bucket_name} - ${var.aws_resource_identifier}"
236236
origin_access_control_origin_type = "s3"
237237
signing_behavior = "always"
238238
signing_protocol = "sigv4"

0 commit comments

Comments
 (0)