aws-cloudformation / rain

A development workflow tool for working with AWS CloudFormation.
Apache License 2.0
784 stars 71 forks source link

Use regional endpoints for large template uploads to S3 #539

Closed davidsuehring closed 1 day ago

davidsuehring commented 1 day ago

*Issue #538

*Description of changes: Switch to using regional S3 endpoints (rather than the legacy global endpoint) when uploading large templates to S3 prior to deployment. This should better support US Gov regions, as well as any commercial region created after March 20, 2019 (per https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#VirtualHostingBackwardsCompatibility)

The change was successfully tested locally in us-east-1 and us-gov-west-1

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.