Skip to content

Commit

Permalink
Batch build list for all regions in Prod (#130)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Beard <[email protected]>
  • Loading branch information
ericzbeard and ezbeard-github-test authored Jan 26, 2023
1 parent 7f940e5 commit 18fb6e9
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 5 deletions.
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ multiple stacks being deployed from the same template in the same account.

The beta account uses the same CloudFormation template, `release/cicd.yml`, as
the alpha account, since the pipeline and permissions are very similar. The pipeline
is started by a commit being made on the `release` branch.
is started by creating a release in the GitHub repo and then copying the zip file to the `cep-source-${ACCOUNT_ID}-beta-awscommunity` bucket in the beta account. There is a script to do this here: `release/awscommunity/release.sh`.

The beta pipeline has one extra stage which copies the source zip to a bucket in the
prod account to start the publishing process, if all beta tests succeed.
Expand Down
99 changes: 95 additions & 4 deletions resources/prod-buildspec-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,105 @@ phases:
- ls
- aws --version

batch:
build-list:
- identifier: af-south-1
env:
PUBLISH_TO_REGION: af-south-1
- identifier: ap-east-1
env:
PUBLISH_TO_REGION: ap-east-1
- identifier: ap-northeast-1
env:
PUBLISH_TO_REGION: ap-northeast-1
- identifier: ap-northeast-2
env:
PUBLISH_TO_REGION: ap-northeast-2
- identifier: ap-northeast-3
env:
PUBLISH_TO_REGION: ap-northeast-3
- identifier: ap-south-1
env:
PUBLISH_TO_REGION: ap-south-1
- identifier: ap-south-2
env:
PUBLISH_TO_REGION: ap-south-2
- identifier: ap-southeast-1
env:
PUBLISH_TO_REGION: ap-southeast-1
- identifier: ap-southeast-2
env:
PUBLISH_TO_REGION: ap-southeast-2
- identifier: ap-southeast-3
env:
PUBLISH_TO_REGION: ap-southeast-3
- identifier: ca-central-1
env:
PUBLISH_TO_REGION: ca-central-1
- identifier: cn-amazon
env:
PUBLISH_TO_REGION: cn-amazon
- identifier: eu-central-1
env:
PUBLISH_TO_REGION: eu-central-1
- identifier: eu-central-2
env:
PUBLISH_TO_REGION: eu-central-2
- identifier: eu-luxembourg
env:
PUBLISH_TO_REGION: eu-luxembourg
- identifier: eu-north-1
env:
PUBLISH_TO_REGION: eu-north-1
- identifier: eu-south-1
env:
PUBLISH_TO_REGION: eu-south-1
- identifier: eu-south-2
env:
PUBLISH_TO_REGION: eu-south-2
- identifier: eu-west-1
env:
PUBLISH_TO_REGION: eu-west-1
- identifier: eu-west-2
env:
PUBLISH_TO_REGION: eu-west-2
- identifier: eu-west-3
env:
PUBLISH_TO_REGION: eu-west-3
- identifier: in-amazon-1
env:
PUBLISH_TO_REGION: in-amazon-1
- identifier: me-central-1
env:
PUBLISH_TO_REGION: me-central-1
- identifier: me-south-1
env:
PUBLISH_TO_REGION: me-south-1
- identifier: sa-east-1
env:
PUBLISH_TO_REGION: sa-east-1
- identifier: us-east-1
env:
PUBLISH_TO_REGION: us-east-1
- identifier: us-east-2
env:
PUBLISH_TO_REGION: us-east-2
- identifier: us-seattle
env:
PUBLISH_TO_REGION: us-seattle
- identifier: us-west-1
env:
PUBLISH_TO_REGION: us-west-1
- identifier: us-west-2
env:
PUBLISH_TO_REGION: us-west-2

build:
commands:
- echo Entered the build phase...
- ls -l ../../release
- ../../release/deregister-all.sh us-east-1
- ../../release/publish.sh us-east-1
- ../../release/deregister-all.sh us-west-2
- ../../release/publish.sh us-west-2
- ../../release/deregister-all.sh $PUBLISH_TO_REGION
- ../../release/publish.sh $PUBLISH_TO_REGION
finally:
- cat rpdk.log

0 comments on commit 18fb6e9

Please sign in to comment.