Region config for S3DeployAction
See original GitHub issuePlease add region
configuration in S3DeployAction for cross-region deployment.
Use Case
I have a pipeline that supports cross-region deployment in us-west-2. A deployment stage of my pipeline looks like:
*Pipeline is in us-west-2
...
Deploy stage:
CF CF
(us-east-1) (us-west-2)
|
S3
(us-east-1)
...
I can set region
for CloudFormationCreateUpdateStackAction, so it can support cross region deployment. However, S3DeployAction does not have region
config in S3DeployActionProps. The target S3 bucket is created by the us-east-1 CF action above and the bucket is located in us-east-1. Therefore, S3DeployAction fails with the below message in console:
Invalid action configuration
The bucket named [BUCKET_NAME] is not located in the us-west-2 AWS region
I manually changed the region of the action in the console to resolve the problem.
Proposed Solution
It would be great if you can add region
to S3DeployActionProps and support cross-region deployment for S3DeployAction.
Other
- 👋 I may be able to implement this feature request
- ⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:8 (5 by maintainers)
Top GitHub Comments
@adrian-hincu yes. We’re very close to finalizing this in #8280 . Then, you would be able to do:
And when you used that Bucket in the deploy Action, it would correctly set its region to
'my-region'
.Then you need to import the Bucket with
fromBucketName
into a Stack that is in the region you want (in your case,us-east-1
). When that happens, the CodePipeline construct will recognize that situation, and correctly fill the configuration of the action so that it points tous-east-1
.