Skip to content

Commit

Permalink
Merge pull request #10 from getcft/release-1.2
Browse files Browse the repository at this point in the history
Removing Redundant DependsOn Reference
  • Loading branch information
nethacker authored May 23, 2024
2 parents 70041a7 + a10e5b3 commit 1ca317f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cloudformation-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: CloudFormation-Validation
- name: CloudFormation Template Validation
run: |
pip install awscli
pip install cfn-lint
aws cloudformation validate-template --template-body file://2-zone-vpc-cf-template.yml --region us-east-1
cfn-lint 2-zone-vpc-cf-template.yml
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
4 changes: 0 additions & 4 deletions 2-zone-vpc-cf-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ Resources:
Ref: 'Environment'

RoutePublicZoneA:
DependsOn:
- InternetGateway
Type: AWS::EC2::Route
Properties:
DestinationCidrBlock: '0.0.0.0/0'
Expand All @@ -202,8 +200,6 @@ Resources:
Ref: 'RouteTablePublicZoneA'

RoutePublicZoneB:
DependsOn:
- InternetGateway
Type: AWS::EC2::Route
Properties:
DestinationCidrBlock: 0.0.0.0/0
Expand Down

0 comments on commit 1ca317f

Please sign in to comment.