Skip to content
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

CloudFront use regional DNS name for S3 Buckets #1805

Open
roleyfoley opened this issue Sep 15, 2021 · 0 comments
Open

CloudFront use regional DNS name for S3 Buckets #1805

roleyfoley opened this issue Sep 15, 2021 · 0 comments
Labels
enhancement plugin-aws AWS official plugin

Comments

@roleyfoley
Copy link
Contributor

Expected Behaviour

When configuring a cdn component with an S3 or SPA backend the domain name listed should be the regional domain name of the bucket

Current Behaviour

We currently use the global name which can have issues within initial deployments due to the time it takes for the S3 bucket to global DNS registration to replicate

Possible Solution

Update getCFS3Origin to use getReference and use the RegionalDomainName attribute of the bucket if it is available

Context

Resolve issues identified here https://stackoverflow.com/questions/38735306/aws-cloudfront-redirecting-to-s3-bucket

@roleyfoley roleyfoley added enhancement plugin-aws AWS official plugin labels Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement plugin-aws AWS official plugin
Projects
None yet
Development

No branches or pull requests

1 participant