-
Notifications
You must be signed in to change notification settings - Fork 37
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
feat: option to configure partition with env var #895
Conversation
711d2ef
to
e099211
Compare
e099211
to
c107acd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, can we unit test this just for posterity? also, maybe a reference in the README would be helpful. doesn't have to be front and center, i don't imagine that many people in aws-cn are using this :)
Absolutely. I'll see what I can do.
Of course. I don't know why I didn't add it in the first place 🤦 |
65ebea9
to
80a9e89
Compare
@kaizencc I've updated the documentation, I'm not a technical writer though so feel free to update it. I've also added test suites, I figured it would get good coverage by duplicating the current test suites that are relevant for the changes here, and tweaking them for the aws-cn case. |
8a0f88d
to
423b59c
Compare
@kaizencc Is this ok to be merged? |
Adds support for deployment to aws-cn partition by checking an optional environemt variable, CDK_AWS_PARTITION. The partition is currently not available to the pipeline in the jobForDeploy, adding the environment variable is a non-breaking change to get the pipeline to deploy to aws-cn.
The github, runner-provided and stage-options tests are duplicated and modified for using the aws-cn partition for the pipeline. The difference between the snapshots for the test suites looks correct when reviewing.
e47f8be
to
716f628
Compare
716f628
to
026b47a
Compare
Adds support for deployment to aws-cn partition by checking an optional environemt variable,
CDK_AWS_PARTITION
. The partition is currently not available to the pipeline in thejobForDeploy
, adding the environment variable is a non-breaking change to get the pipeline to deploy to aws-cn.This has been verified with stacks and nested stacks in multiple stages in aws-cn.
Fixes #820