Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit d467c75

Browse files
goodbye travis (#38)
1 parent 17e18ca commit d467c75

27 files changed

+230
-229
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: 'ubuntu-latest'
8+
9+
steps:
10+
11+
- uses: 'actions/checkout@v2'
12+
13+
- uses: 'actions/setup-python@v2'
14+
with:
15+
python-version: '3.8'
16+
17+
- name: yamlllint
18+
run: |
19+
pip install yamllint==1.24.2
20+
find . -type f \( -name '*.yml' -o -name '*.yaml' \) -a ! -name '.*' | while read file; do set -ex && yamllint "$file"; done;
21+
22+
- name: cfn-lint
23+
run: |
24+
pip install cfn-lint==0.34.0
25+
cfn-lint -i W2501 W4002 -t **/*.yaml
26+
27+
- name: license
28+
run: |
29+
sudo apt-get install -y shellcheck
30+
find . -type f -name '*.sh' | while read file; do set -ex && shellcheck -s bash "$file"; done

.travis.yml

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

chapter02/template.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Resources:
141141
Properties:
142142
HealthCheckIntervalSeconds: 5
143143
HealthCheckPath: '/'
144-
HealthCheckPort: 80
144+
HealthCheckPort: '80'
145145
HealthCheckProtocol: HTTP
146146
HealthCheckTimeoutSeconds: 3
147147
HealthyThresholdCount: 2
@@ -189,7 +189,7 @@ Resources:
189189
Type: 'AWS::RDS::DBInstance'
190190
DeletionPolicy: Delete # For AWS::RDS::DBInstance resources that don't specify the DBClusterIdentifier property, the default policy is Snapshot which can cause unwanted costs. However, for production setups, we highly recommend to stay with the default to avoid data loss.
191191
Properties:
192-
AllocatedStorage: 5
192+
AllocatedStorage: '5'
193193
BackupRetentionPeriod: 0
194194
DBInstanceClass: 'db.t2.micro'
195195
DBName: wordpress
@@ -253,7 +253,7 @@ Resources:
253253
httpd24: []
254254
files:
255255
'/etc/httpd/conf.d/wordpress.conf':
256-
content: !Sub |
256+
content: |
257257
<Directory "/var/www/html">
258258
Options Indexes FollowSymLinks
259259
AllowOverride All
@@ -317,10 +317,9 @@ Resources:
317317
TargetGroupARNs:
318318
- !Ref LoadBalancerTargetGroup
319319
LaunchConfigurationName: !Ref LaunchConfiguration
320-
MinSize: 2
321-
MaxSize: 4
322-
DesiredCapacity: 2
323-
Cooldown: 60
320+
MinSize: '2'
321+
MaxSize: '4'
322+
Cooldown: '60'
324323
HealthCheckGracePeriod: 300
325324
HealthCheckType: ELB
326325
VPCZoneIdentifier:

chapter06/firewall2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Resources:
5656
# allowing inbound ICMP traffic
5757
SecurityGroupIngress:
5858
- IpProtocol: icmp
59-
FromPort: '-1'
60-
ToPort: '-1'
59+
FromPort: -1
60+
ToPort: -1
6161
CidrIp: '0.0.0.0/0'
6262
Instance:
6363
Type: 'AWS::EC2::Instance'

chapter06/firewall3.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ Resources:
5656
# allowing inbound ICMP traffic
5757
SecurityGroupIngress:
5858
- IpProtocol: icmp
59-
FromPort: '-1'
60-
ToPort: '-1'
59+
FromPort: -1
60+
ToPort: -1
6161
CidrIp: '0.0.0.0/0'
6262
# allowing inbound SSH traffic
6363
- IpProtocol: tcp
64-
FromPort: '22'
65-
ToPort: '22'
64+
FromPort: 22
65+
ToPort: 22
6666
CidrIp: '0.0.0.0/0'
6767
Instance:
6868
Type: 'AWS::EC2::Instance'

chapter06/firewall4.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ Resources:
6161
# allowing inbound ICMP traffic
6262
SecurityGroupIngress:
6363
- IpProtocol: icmp
64-
FromPort: '-1'
65-
ToPort: '-1'
64+
FromPort: -1
65+
ToPort: -1
6666
CidrIp: '0.0.0.0/0'
6767
# allowing inbound SSH traffic
6868
- IpProtocol: tcp
69-
FromPort: '22'
70-
ToPort: '22'
69+
FromPort: 22
70+
ToPort: 22
7171
CidrIp: !Sub '${IpForSSH}/32'
7272
Instance:
7373
Type: 'AWS::EC2::Instance'

chapter06/firewall5.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ Resources:
5757
VpcId: !Ref VPC
5858
SecurityGroupIngress:
5959
- IpProtocol: icmp
60-
FromPort: "-1"
61-
ToPort: "-1"
60+
FromPort: -1
61+
ToPort: -1
6262
CidrIp: '0.0.0.0/0'
6363
- IpProtocol: tcp
64-
FromPort: '22'
65-
ToPort: '22'
64+
FromPort: 22
65+
ToPort: 22
6666
CidrIp: !Sub '${IpForSSH}/32'
6767
Tags:
6868
- Key: Name
@@ -74,8 +74,8 @@ Resources:
7474
VpcId: !Ref VPC
7575
SecurityGroupIngress:
7676
- IpProtocol: tcp
77-
FromPort: '22'
78-
ToPort: '22'
77+
FromPort: 22
78+
ToPort: 22
7979
SourceSecurityGroupId: !Ref SecurityGroupBastionHost
8080
Tags:
8181
- Key: Name

0 commit comments

Comments
 (0)