Skip to content

Commit 06231ed

Browse files
committed
fix yam + script
1 parent 47eac09 commit 06231ed

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Examples/ServiceLifecycle/template.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ Parameters:
77
Type: String
88
Default: postgres
99
Description: Database username
10-
MinLength: 1
11-
MaxLength: 16
10+
MinLength: "1"
11+
MaxLength: "16"
1212
AllowedPattern: '[a-zA-Z][a-zA-Z0-9]*'
1313
ConstraintDescription: Must begin with a letter and contain only alphanumeric characters
1414

1515
DBPassword:
1616
Type: String
1717
Default: MySecretPassword123!
1818
Description: Database password
19-
MinLength: 8
20-
MaxLength: 41
19+
MinLength: "8"
20+
MaxLength: "41"
2121
NoEcho: true
2222
ConstraintDescription: Must be at least 8 characters long
2323

2424
DBName:
2525
Type: String
2626
Default: servicelifecycle
2727
Description: Database name
28-
MinLength: 1
29-
MaxLength: 64
28+
MinLength: "1"
29+
MaxLength: "64"
3030
AllowedPattern: '[a-zA-Z][a-zA-Z0-9]*'
3131
ConstraintDescription: Must begin with a letter and contain only alphanumeric characters
3232

@@ -62,7 +62,7 @@ Resources:
6262
Type: AWS::EC2::Subnet
6363
Properties:
6464
VpcId: !Ref VPC
65-
AvailabilityZone: !Select [0, !GetAZs '']
65+
AvailabilityZone: "!Select [0, !GetAZs '']"
6666
CidrBlock: 10.0.1.0/24
6767
MapPublicIpOnLaunch: true
6868
Tags:
@@ -74,7 +74,7 @@ Resources:
7474
Type: AWS::EC2::Subnet
7575
Properties:
7676
VpcId: !Ref VPC
77-
AvailabilityZone: !Select [1, !GetAZs '']
77+
AvailabilityZone: "!Select [1, !GetAZs '']"
7878
CidrBlock: 10.0.2.0/24
7979
MapPublicIpOnLaunch: true
8080
Tags:
@@ -137,7 +137,7 @@ Resources:
137137
GroupDescription: Security group for Lambda function
138138
VpcId: !Ref VPC
139139
SecurityGroupEgress:
140-
- IpProtocol: -1
140+
- IpProtocol: "-1"
141141
CidrIp: 0.0.0.0/0
142142
Description: Allow all outbound traffic
143143
Tags:
@@ -168,7 +168,7 @@ Resources:
168168
MasterUsername: !Ref DBUsername
169169
MasterUserPassword: !Ref DBPassword
170170
DBName: !Ref DBName
171-
AllocatedStorage: 20
171+
AllocatedStorage: "20"
172172
StorageType: gp2
173173
VPCSecurityGroups:
174174
- !Ref DatabaseSecurityGroup

scripts/check-format-linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ echo "Downloading check-swift-format.sh"
3434
curl -s ${CHECK_FORMAT_SCRIPT} > format.sh && chmod u+x format.sh
3535

3636
echo "Running check-swift-format.sh"
37-
/usr/local/bin/container run --rm -v "$(pwd):/workspace" -w /workspace ${SWIFT_IMAGE} bash -clx "./format.sh"
37+
/usr/local/bin/docker run --rm -v "$(pwd):/workspace" -w /workspace ${SWIFT_IMAGE} bash -clx "./format.sh"
3838

3939
echo "Cleaning up"
4040
rm format.sh
@@ -46,7 +46,7 @@ echo "Downloading yamllint.yml"
4646
curl -s ${YAML_LINT} > yamllint.yml
4747

4848
echo "Running yamllint"
49-
/usr/local/bin/container run --rm -v "$(pwd):/workspace" -w /workspace ${YAML_IMAGE} bash -clx "apt-get -qq update && apt-get -qq -y install yamllint && yamllint --strict --config-file /workspace/yamllint.yml .github"
49+
/usr/local/bin/docker run --rm -v "$(pwd):/workspace" -w /workspace ${YAML_IMAGE} bash -clx "apt-get -qq update && apt-get -qq -y install yamllint && yamllint --strict --config-file /workspace/yamllint.yml .github"
5050

5151
echo "Cleaning up"
5252
rm yamllint.yml

0 commit comments

Comments
 (0)