Skip to content

Commit e7b191b

Browse files
Address cfn-lint findings
Address E3009:, mode minimum length is 6 characters Ignore E3012 for PyPlate Address W3687: ['FromPort', 'ToPort'] are ignored when using 'IpProtocol' value '-1' Ignore W6001: The output value is an import from another output
1 parent b6ff6fe commit e7b191b

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

templates/batch/sc-batch-fargate.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ Resources:
206206
config:
207207
ignore_checks: # Ignore cfn-lint errors for PyPlate.
208208
- E3002
209+
- E3012
209210
Type: AWS::Batch::JobDefinition
210211
Properties:
211212
Type: container

templates/ec2/sc-ec2-linux-docker-notebook.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Metadata:
55
config:
66
ignore_checks:
77
- E7001
8+
- W6001
89
AWS::CloudFormation::Interface:
910
ParameterGroups:
1011
- Label:
@@ -155,8 +156,6 @@ Resources:
155156
'Fn::FindInMap': [AccountToImportParams, !Ref "AWS::AccountId", VPCId]
156157
SecurityGroupIngress:
157158
- CidrIp: "10.50.0.0/16"
158-
FromPort: -1
159-
ToPort: -1
160159
IpProtocol: "-1"
161160

162161
InstanceProfile:
@@ -274,7 +273,7 @@ Resources:
274273
files:
275274
/opt/sage/bin/make_env_vars_file.sh:
276275
source: "https://raw.githubusercontent.com/Sage-Bionetworks/service-catalog-utils/v2.0.3/linux/opt/sage/bin/make_env_vars_file.sh"
277-
mode: "00744"
276+
mode: "000744"
278277
owner: "root"
279278
group: "root"
280279
commands:

templates/ec2/sc-ec2-linux-docker.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ Resources:
8686
'Fn::FindInMap': [AccountToImportParams, !Ref "AWS::AccountId", VPCId]
8787
SecurityGroupIngress:
8888
- CidrIp: "10.50.0.0/16"
89-
FromPort: -1
90-
ToPort: -1
9189
IpProtocol: "-1"
9290
InstanceRole:
9391
Type: AWS::IAM::Role
@@ -176,7 +174,7 @@ Resources:
176174
files:
177175
/opt/sage/bin/make_env_vars_file.sh:
178176
source: "https://raw.githubusercontent.com/Sage-Bionetworks/service-catalog-utils/v2.1.0/linux/opt/sage/bin/make_env_vars_file.sh"
179-
mode: "00744"
177+
mode: "000744"
180178
owner: "root"
181179
group: "root"
182180
commands:

templates/ec2/sc-ec2-windows-jumpcloud.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Resources:
114114
files:
115115
'c:\\scripts\\install-chocolatey.ps1':
116116
source: "https://chocolatey.org/install.ps1"
117-
mode: "0664"
117+
mode: "000664"
118118
commands:
119119
01_install_nuget:
120120
command: 'Powershell.exe Install-PackageProvider -Name NuGet -Force'
@@ -133,7 +133,7 @@ Resources:
133133
files:
134134
'c:\\scripts\\set_env_vars_file.ps1':
135135
source: "https://raw.githubusercontent.com/Sage-Bionetworks/infra-utils/v1.0.9/aws/set_env_vars_file.ps1"
136-
mode: "0664"
136+
mode: "000664"
137137
commands:
138138
01_set_env_vars:
139139
command: !Join
@@ -145,10 +145,10 @@ Resources:
145145
files:
146146
'c:\scripts\install-ms-vc.ps1':
147147
source: "https://raw.githubusercontent.com/Sage-Bionetworks/infra-utils/v1.0.8/aws/install-ms-vc.ps1"
148-
mode: "0664"
148+
mode: "000664"
149149
'c:\\scripts\\install-jc-agent.ps1':
150150
source: "https://raw.githubusercontent.com/TheJumpCloud/support/master/scripts/windows/InstallWindowsAgent.ps1"
151-
mode: "0664"
151+
mode: "000664"
152152
commands:
153153
01_install_ms_vc:
154154
command: !Join
@@ -220,8 +220,6 @@ Resources:
220220
'Fn::FindInMap': [AccountToImportParams, !Ref "AWS::AccountId", VPCId]
221221
SecurityGroupIngress:
222222
- CidrIp: "10.50.0.0/16"
223-
FromPort: -1
224-
ToPort: -1
225223
IpProtocol: "-1"
226224
Outputs:
227225
WindowsInstancePrivateIpAddress:

templates/s3/sc-s3-synapse-ra.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Resources:
8484
config:
8585
ignore_checks:
8686
- E3001
87+
- E3006
8788
Properties:
8889
Target:
8990
Bucket: !Ref S3Bucket

0 commit comments

Comments
 (0)