Skip to content

Commit

Permalink
chore: add origin_path in cloudfront configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfarias authored Oct 2, 2023
1 parent eb20442 commit 26a8b54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site-main/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ resource "aws_cloudfront_distribution" "website_cdn" {
origin {
origin_id = var.create_bucket == true ? "origin-bucket-${aws_s3_bucket.website_bucket[0].id}" : "origin-bucket-${var.bucket_name}"
domain_name = var.enable_oai == true ? local.origin_domain_name_oai : local.origin_domain_name
origin_path = var.origin_path != null ? var.origin_path : null

dynamic "s3_origin_config" {
for_each = local.origin_access_identity == null ? [] : local.origin_access_identity
Expand Down

0 comments on commit 26a8b54

Please sign in to comment.