aws / aws/aws-cli

aws cloudformation deploy s3-bucket should work for different regions

Open
#4,372 11 comments 2 reactions 0 assignees View on GitHub
cloudformation package-deploy customization feature-request needs-discussion p3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

Now when using aws cloudformation deploy with s3-bucket flag -
CLI does these operations -
- Redirect to other endpoint.
```
-------
Event before-parameter-build.s3.PutObject: calling handler >
------
```
- PutObject - to url like - https://abcbucket123.s3.us-west-2.amazonaws.com -Works
- CreateChangeSet - 'TemplateURL': 'https://s3-ap-south-1.amazonaws.com/abcbucket123/2be6ca6a006bd83e306ae0f307076535.template'

In my tests, I found that if we use -
create-change-set with template-url like https://abcbucket123.s3.amazonaws.com/newtest2.yaml

use template-url as https://.s3.amazonaws.com instead of https://s3-.amazonaws.com/ which will enable the use of same bucket for different regions in future.

This will mean that even PutObject is being done in correct bucket and even CreateChangeSet from the same bucket.

This will enable use of just single bucket in single region for multiple stacks in different region.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.