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

Support S3 regional redirect (new AWS feature) #16

Closed
Jamie-BitFlight opened this issue Mar 6, 2018 · 10 comments
Closed

Support S3 regional redirect (new AWS feature) #16

Jamie-BitFlight opened this issue Mar 6, 2018 · 10 comments
Assignees

Comments

@Jamie-BitFlight
Copy link
Contributor

Jamie-BitFlight commented Mar 6, 2018

what

Add support for regional S3 endpoint

why

  • CloudFront now allows specifying S3 regional endpoint when creating S3 origin.
  • By default, CloudFront still uses global endpoint convention on console but one can manually enter the regional endpoint and avoid redirects.

Would you mind updating the TF to use the regional endpoint in cloudfront?

@osterman
Copy link
Member

osterman commented Mar 6, 2018

@Jamie-BitFlight sounds interesting. Would can take a look at it.

Could you link us to (a) the announcement (b) terraform documentation for the feature? If it was recently, added, it might not yet be supported by the terraform-aws-provider.

@osterman osterman changed the title s3 regional redirect - fixed at AWS Support S3 regional redirect (new AWS feature) Mar 6, 2018
@Jamie-BitFlight
Copy link
Contributor Author

Sorry it was from this AWS employee saying it:
https://forums.aws.amazon.com/message.jspa?messageID=830100#830100
I have tested changing the url within cloudfront manually in the console and it is currently working too.

@osterman
Copy link
Member

osterman commented Mar 7, 2018

Thanks @Jamie-BitFlight! At this time we cannot prioritize the feature as it's not been requested by one of our clients. We'll leave the issue open. If someone submits a PR, we'll promptly review it.

@ebarault
Copy link

ebarault commented Apr 19, 2018

@Jamie-BitFlight @osterman
Hi,
This is not related to terraform-aws-provider support: all you need to do is update the s3 bucket url in the cloudfront s3 origin config to use the regional api instead of the global one.

For example:
http://my-bucket.s3.amazonaws.com/ -> http://my-bucket.s3.eu-west-3.amazonaws.com

see https://docs.aws.amazon.com/general/latest/gr/rande.html for the full list of regional endpoints

@osterman
Copy link
Member

thanks @ebarault! @Jamie-BitFlight let me know if this works for you.

@kitsunde
Copy link

FYI there's a PR to expose the regional endpoint so it doesn't need to be constructed: hashicorp/terraform-provider-aws#4556

@osterman
Copy link
Member

Thanks @kitsunde. Keep us posted.

@Jamie-BitFlight
Copy link
Contributor Author

I've added a constructed regional endpoint option in this pull request. #17

@Jamie-BitFlight
Copy link
Contributor Author

wohooooooooooooo!

@Jamie-BitFlight
Copy link
Contributor Author

6th march - till 26 june : RIP Issue 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants