-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add s3 domain names with region so cloudfront origins outside of us-east-1 won't cause redirects immediately after setup #4540
Comments
PR submitted: #4556 |
reverting changes due to conflict
The |
This has been released in version 1.21.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
Buckets created outside of us-east-1 will redirect to s3 when set as origins for cloudfront until DNS propagation has happened unless using the regional domain name. We need to set:
It would be nice if we could get a
regional_domain_name
or maybecanonical_domain_name
from theaws_s3_bucket
resource, and even make it recommended for origin since it's rather surprising especially if the redirects get cached.New or Affected Resource(s)`
Potential Terraform Configuration
This
Needs to be rewritten as:
References
The text was updated successfully, but these errors were encountered: