Skip to content

Merge pull request #10 from getcft/release-1.2 #16

Merge pull request #10 from getcft/release-1.2

Merge pull request #10 from getcft/release-1.2 #16

name: CloudFormation Validation
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: CloudFormation Template Validation
run: |
pip install awscli
aws cloudformation validate-template --template-body file://2-zone-vpc-cf-template.yml --region us-east-1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: CloudFormation Linter
run: |
pip install cfn-lint
cfn-lint -I 2-zone-vpc-cf-template.yml