Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
fix: Added extra to bootstrap command to fix issue
Browse files Browse the repository at this point in the history
aws/aws-cdk#8678  attempting to fix bootstrap issue
  • Loading branch information
Mitchell Paff authored and Mitchell Paff committed Jun 14, 2021
1 parent 9f441f9 commit f7929df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: (NonProd) Deploy AWS stacks
if: github.repository == 'linz/geostore' && github.ref == 'refs/heads/master'
run: |
poetry run cdk bootstrap aws://unknown-account/ap-southeast-2
poetry run env CDK_NEW_BOOTSTRAP=1 cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess aws://unknown-account/ap-southeast-2
poetry run cdk deploy --all --require-approval never
env:
GEOSTORE_ENV_NAME: nonprod
Expand All @@ -106,7 +106,9 @@ jobs:
github.repository == 'linz/geostore' && (startsWith(github.ref, 'refs/heads/release-') ||
startsWith(github.ref, 'refs/tags/release-'))
run: |
poetry run cdk bootstrap aws://unknown-account/ap-southeast-2
poetry run env CDK_NEW_BOOTSTRAP=1 cdk bootstrap \
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess \
aws://unknown-account/ap-southeast-2
- name: (Prod) Report AWS stack changes before deployment
if: >
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-upgrade-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- name: Deploy copy of production AWS stacks in to CI environment
run: |
poetry run cdk bootstrap aws://unknown-account/ap-southeast-2
poetry run env CDK_NEW_BOOTSTRAP=1 cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess aws://unknown-account/ap-southeast-2
poetry run cdk deploy --all --require-approval never
# checkout the branch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- name: Deploy AWS stacks for testing
run: |
poetry run cdk bootstrap --strict aws://unknown-account/ap-southeast-2
poetry run env CDK_NEW_BOOTSTRAP=1 cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess aws://unknown-account/ap-southeast-2
poetry run cdk deploy --all --require-approval never --strict
- name: Run non-infrastructure tests offline
Expand Down

0 comments on commit f7929df

Please sign in to comment.