From cf9cf389bd3cbba631aa17751405a4982e50492d Mon Sep 17 00:00:00 2001 From: Phil Chen Date: Wed, 22 May 2024 15:02:53 -0700 Subject: [PATCH] Create cloudformation-validation.yml --- .../workflows/cloudformation-validation.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/cloudformation-validation.yml diff --git a/.github/workflows/cloudformation-validation.yml b/.github/workflows/cloudformation-validation.yml new file mode 100644 index 0000000..61d5815 --- /dev/null +++ b/.github/workflows/cloudformation-validation.yml @@ -0,0 +1,24 @@ +name: CloudFormation-Validation + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + + - name: Run a multi-line script + run: | + pip install --upgrade --user awscli, + aws cloudformation validate-template --template-body file://2-zone-vpc-cf-template.yml