Skip to content

Commit 8107b42

Browse files
authored
Merge pull request #4 from getcft/release-1.5
Adding Github Actions Tests
2 parents 75bc902 + 8bb2764 commit 8107b42

File tree

4 files changed

+30
-31
lines changed

4 files changed

+30
-31
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CloudFormation Validation
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: CloudFormation Template Validation
19+
run: |
20+
pip install awscli
21+
aws cloudformation validate-template --template-body file://elb-to-ec2-target-group-cf-template.yml --region us-east-1
22+
env:
23+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
24+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
25+
- name: CloudFormation Linter
26+
run: |
27+
pip install cfn-lint
28+
cfn-lint -I elb-to-ec2-target-group-cf-template.yml

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# aws-elb-to-ec2-target-group-cf-template
2-
[![Build Status](https://travis-ci.org/getcft/aws-elb-to-ec2-target-group-cf-template.svg?branch=master)](https://travis-ci.org/getcft/aws-elb-to-ec2-target-group-cf-template)
2+
[![CloudFormation Validation](https://github.com/getcft/aws-elb-to-ec2-target-group-cf-template/actions/workflows/cloudformation-validation.yml/badge.svg)](https://github.com/getcft/aws-elb-to-ec2-target-group-cf-template/actions/workflows/cloudformation-validation.yml)
33

44
## Description:
55

elb-to-ec2-target-group-cf-template.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright [2018] [Phil Chen]
1+
# Copyright [2024] [Phil Chen]
22

33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -187,8 +187,6 @@ Resources:
187187

188188
# Route traffic through the internet gateway
189189
RoutePubZoneA:
190-
DependsOn:
191-
- InternetGateway
192190
Type: AWS::EC2::Route
193191
Properties:
194192
DestinationCidrBlock: '0.0.0.0/0'
@@ -199,8 +197,6 @@ Resources:
199197

200198
# Route traffic through the internet gateway
201199
RoutePubZoneB:
202-
DependsOn:
203-
- InternetGateway
204200
Type: AWS::EC2::Route
205201
Properties:
206202
DestinationCidrBlock: 0.0.0.0/0

0 commit comments

Comments
 (0)