Skip to content

Commit 4eebccf

Browse files
chore: Update linter (#749)
1 parent 88d563e commit 4eebccf

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
- uses: 'actions/checkout@v4'
1414
- uses: 'actions/setup-python@v5'
1515
with:
16-
python-version: '3.12'
16+
python-version: '3.13'
1717
- name: yamlllint
1818
run: |
19-
pip install yamllint==1.33.0
19+
pip install yamllint==1.37.1
2020
yamllint .
2121
- name: cfn-lint
2222
run: |
23-
pip install cfn-lint==0.85.0
24-
cfn-lint -i W2001 W3045 W4002 W6001 W8003 E3026 -t '**/*.yaml'
23+
pip install cfn-lint==1.39.1
24+
cfn-lint -i E1022 E3003 E3014 E3026 E3032 W1011 W2001 W2010 W3045 W6001 W8003 -t '**/*.yaml'
2525
- name: license
2626
run: |
2727
find . -type f -name '*.yaml' -not -name '.readthedocs.yaml' | while read file; do set -ex && grep -q 'LICENSE-2.0' "$file"; done;

ec2/al2-mutable-private.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,8 @@ Resources:
13691369
files:
13701370
- '/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json'
13711371
packages:
1372-
- cloudwatch
1372+
yum:
1373+
- cloudwatch
13731374
ssh-access:
13741375
files:
13751376
'/opt/authorized_keys_command.sh':

ec2/al2-mutable-public.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,8 @@ Resources:
13791379
files:
13801380
- '/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json'
13811381
packages:
1382-
- cloudwatch
1382+
yum:
1383+
- cloudwatch
13831384
ssh-access:
13841385
files:
13851386
'/opt/authorized_keys_command.sh':

fargate/service-cloudmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ Resources:
447447
- HasProxyImage
448448
- Name: proxy
449449
Image: !Ref ProxyImage
450-
Command: !If [HasProxyCommand, !Ref ProxyCommand, !Ref 'AWS::NoValue']
450+
Command: !If [HasProxyCommand, [!Ref ProxyCommand], !Ref 'AWS::NoValue']
451451
PortMappings:
452452
- ContainerPort: !Ref ProxyPort
453453
Protocol: tcp
@@ -484,7 +484,7 @@ Resources:
484484
- HasSidecarImage
485485
- Name: sidecar
486486
Image: !Ref SidecarImage
487-
Command: !If [HasSidecarCommand, !Ref SidecarCommand, !Ref 'AWS::NoValue']
487+
Command: !If [HasSidecarCommand, [!Ref SidecarCommand], !Ref 'AWS::NoValue']
488488
PortMappings:
489489
- ContainerPort: !Ref SidecarPort
490490
Protocol: tcp

fargate/service-cluster-alb.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ Resources:
586586
- HasProxyImage
587587
- Name: proxy
588588
Image: !Ref ProxyImage
589-
Command: !If [HasProxyCommand, !Ref ProxyCommand, !Ref 'AWS::NoValue']
589+
Command: !If [HasProxyCommand, [!Ref ProxyCommand], !Ref 'AWS::NoValue']
590590
PortMappings:
591591
- ContainerPort: !Ref ProxyPort
592592
Protocol: tcp
@@ -623,7 +623,7 @@ Resources:
623623
- HasSidecarImage
624624
- Name: sidecar
625625
Image: !Ref SidecarImage
626-
Command: !If [HasSidecarCommand, !Ref SidecarCommand, !Ref 'AWS::NoValue']
626+
Command: !If [HasSidecarCommand, [!Ref SidecarCommand], !Ref 'AWS::NoValue']
627627
PortMappings:
628628
- ContainerPort: !Ref SidecarPort
629629
Protocol: tcp

fargate/service-dedicated-alb.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ Resources:
722722
- HasProxyImage
723723
- Name: proxy
724724
Image: !Ref ProxyImage
725-
Command: !If [HasProxyCommand, !Ref ProxyCommand, !Ref 'AWS::NoValue']
725+
Command: !If [HasProxyCommand, [!Ref ProxyCommand], !Ref 'AWS::NoValue']
726726
PortMappings:
727727
- ContainerPort: !Ref ProxyPort
728728
Protocol: tcp
@@ -759,7 +759,7 @@ Resources:
759759
- HasSidecarImage
760760
- Name: sidecar
761761
Image: !Ref SidecarImage
762-
Command: !If [HasSidecarCommand, !Ref SidecarCommand, !Ref 'AWS::NoValue']
762+
Command: !If [HasSidecarCommand, [!Ref SidecarCommand], !Ref 'AWS::NoValue']
763763
PortMappings:
764764
- ContainerPort: !Ref SidecarPort
765765
Protocol: tcp

0 commit comments

Comments
 (0)