Update C9.yaml to address bug in error handling for C9 Instance Finde… #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PushToProd | |
permissions: | |
id-token: write | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
buildAndDeploy: | |
runs-on: ubuntu-latest | |
env: | |
STEP_S3_BUCKET: amazon-dynamodb-labs.com | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
fetch-depth: '0' | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-region: us-east-1 | |
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
- name: S3SyncStaticWeb | |
run: aws s3 sync ./global-serverless/web/ s3://amazon-dynamodb-labs-static/static/global-serverless-application/web/ | |
- name: Pull preview build | |
run: aws s3 sync s3://amazon-dynamodb-labs-static/build/ . && chmod +x preview_build | |
- name: Build Assets | |
run: python3 ./.github/scripts/build-assets.py | |
- name: S3Sync | |
run: aws s3 sync public/assets/ s3://$STEP_S3_BUCKET/assets/ --delete | |
- name: SetS3Acl | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/C9.yaml | |
- name: SetS3AclED1 | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/GeneratorLambdaPackage.zip | |
- name: SetS3AclED2 | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/MapLambdaPackage.zip | |
- name: SetS3AclED3 | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/ReduceLambdaPackage.zip | |
- name: SetS3AclED4 | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/StateLambdaPackage.zip | |
- name: SetS3AclED5 | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/event-driven-cfn.yaml | |
- name: SetS3AclLHOLEnv | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/migration-env-setup.yaml | |
- name: SetS3AclLHOLDMS | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/migration-dms-setup.yaml | |
- name: SetS3AclLHOLzETL | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/OpenSearchPipeline.zip | |
- name: SetS3AclLHOLzETLYaml | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/dynamodb-opensearch-setup.yaml | |
- name: SetS3AclLGME1 | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/battle-royale.zip | |
- name: SetS3AclLMR | |
run: aws s3api put-object-acl --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers --bucket $STEP_S3_BUCKET --key assets/global-serverless.zip |