Skip to content

Commit

Permalink
Address cfn-lint findings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ConsoleCatzirl committed Dec 4, 2024
1 parent b6ff6fe commit e7b191b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
1 change: 1 addition & 0 deletions templates/batch/sc-batch-fargate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ Resources:
config:
ignore_checks: # Ignore cfn-lint errors for PyPlate.
- E3002
- E3012
Type: AWS::Batch::JobDefinition
Properties:
Type: container
Expand Down
5 changes: 2 additions & 3 deletions templates/ec2/sc-ec2-linux-docker-notebook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Metadata:
config:
ignore_checks:
- E7001
- W6001
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
Expand Down Expand Up @@ -155,8 +156,6 @@ Resources:
'Fn::FindInMap': [AccountToImportParams, !Ref "AWS::AccountId", VPCId]
SecurityGroupIngress:
- CidrIp: "10.50.0.0/16"
FromPort: -1
ToPort: -1
IpProtocol: "-1"

InstanceProfile:
Expand Down Expand Up @@ -274,7 +273,7 @@ Resources:
files:
/opt/sage/bin/make_env_vars_file.sh:
source: "https://raw.githubusercontent.com/Sage-Bionetworks/service-catalog-utils/v2.0.3/linux/opt/sage/bin/make_env_vars_file.sh"
mode: "00744"
mode: "000744"
owner: "root"
group: "root"
commands:
Expand Down
4 changes: 1 addition & 3 deletions templates/ec2/sc-ec2-linux-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ Resources:
'Fn::FindInMap': [AccountToImportParams, !Ref "AWS::AccountId", VPCId]
SecurityGroupIngress:
- CidrIp: "10.50.0.0/16"
FromPort: -1
ToPort: -1
IpProtocol: "-1"
InstanceRole:
Type: AWS::IAM::Role
Expand Down Expand Up @@ -176,7 +174,7 @@ Resources:
files:
/opt/sage/bin/make_env_vars_file.sh:
source: "https://raw.githubusercontent.com/Sage-Bionetworks/service-catalog-utils/v2.1.0/linux/opt/sage/bin/make_env_vars_file.sh"
mode: "00744"
mode: "000744"
owner: "root"
group: "root"
commands:
Expand Down
10 changes: 4 additions & 6 deletions templates/ec2/sc-ec2-windows-jumpcloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Resources:
files:
'c:\\scripts\\install-chocolatey.ps1':
source: "https://chocolatey.org/install.ps1"
mode: "0664"
mode: "000664"
commands:
01_install_nuget:
command: 'Powershell.exe Install-PackageProvider -Name NuGet -Force'
Expand All @@ -133,7 +133,7 @@ Resources:
files:
'c:\\scripts\\set_env_vars_file.ps1':
source: "https://raw.githubusercontent.com/Sage-Bionetworks/infra-utils/v1.0.9/aws/set_env_vars_file.ps1"
mode: "0664"
mode: "000664"
commands:
01_set_env_vars:
command: !Join
Expand All @@ -145,10 +145,10 @@ Resources:
files:
'c:\scripts\install-ms-vc.ps1':
source: "https://raw.githubusercontent.com/Sage-Bionetworks/infra-utils/v1.0.8/aws/install-ms-vc.ps1"
mode: "0664"
mode: "000664"
'c:\\scripts\\install-jc-agent.ps1':
source: "https://raw.githubusercontent.com/TheJumpCloud/support/master/scripts/windows/InstallWindowsAgent.ps1"
mode: "0664"
mode: "000664"
commands:
01_install_ms_vc:
command: !Join
Expand Down Expand Up @@ -220,8 +220,6 @@ Resources:
'Fn::FindInMap': [AccountToImportParams, !Ref "AWS::AccountId", VPCId]
SecurityGroupIngress:
- CidrIp: "10.50.0.0/16"
FromPort: -1
ToPort: -1
IpProtocol: "-1"
Outputs:
WindowsInstancePrivateIpAddress:
Expand Down
1 change: 1 addition & 0 deletions templates/s3/sc-s3-synapse-ra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Resources:
config:
ignore_checks:
- E3001
- E3006
Properties:
Target:
Bucket: !Ref S3Bucket
Expand Down

0 comments on commit e7b191b

Please sign in to comment.