Skip to content

Commit

Permalink
Create cloudformation-validation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nethacker authored May 22, 2024
1 parent 7b4dfcd commit cf9cf38
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cloudformation-validation.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cf9cf38

Please sign in to comment.