Skip to content

Commit

Permalink
Use bucket.website_endpoint instead of bucket.website_domain (#166)
Browse files Browse the repository at this point in the history
Change `local. bucket_domain_name` to be `bucket.website_endpoint` when module is in website mode, as `bucket.website_domain` does not provide the full S3 static site endpoint.
  • Loading branch information
Zyava authored May 17, 2021
1 parent 112a53d commit b4fc35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ locals {
) : ""

bucket = local.origin_bucket.bucket
bucket_domain_name = var.website_enabled ? local.origin_bucket.website_domain : local.origin_bucket.bucket_regional_domain_name
bucket_domain_name = var.website_enabled ? local.origin_bucket.website_endpoint : local.origin_bucket.bucket_regional_domain_name

override_origin_bucket_policy = local.enabled && var.override_origin_bucket_policy

Expand Down

0 comments on commit b4fc35d

Please sign in to comment.