File tree Expand file tree Collapse file tree 8 files changed +21
-10
lines changed Expand file tree Collapse file tree 8 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 2222 - name : Print the Cloud Formation Linter Version & run Linter
2323 run : |
2424 cfn-lint --version
25- cfn-lint -t templates_apprunner/**/*.yaml
25+ cfn-lint -t templates_apprunner/**/*.yaml -i W3002
26+ # -i 3002 will not apply rule 3002 https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md
27+ # which is failing in ci/cd
2628
2729 build :
2830 name : Build and Upload AppRunner templates
Original file line number Diff line number Diff line change 2222 - name : Print the Cloud Formation Linter Version & run Linter
2323 run : |
2424 cfn-lint --version
25- cfn-lint -t templates_ecs/**/*.yaml
25+ cfn-lint -t templates_ecs/**/*.yaml -i W3002
26+ # -i 3002 will not apply rule 3002 https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md
27+ # which is failing in ci/cd
2628
2729 build :
2830 name : Build and Upload ECS templates
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ Resources:
2626 CloudTrailLoggingBucket :
2727 Type : AWS::S3::Bucket
2828 Properties :
29- AccessControl : LogDeliveryWrite
29+ OwnershipControls :
30+ Rules :
31+ - ObjectOwnership : BucketOwnerEnforced
3032 PublicAccessBlockConfiguration :
3133 BlockPublicAcls : true
3234 BlockPublicPolicy : true
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ validate:
1414 aws cloudformation validate-template --template-body file://./SecureForCloudAppRunner.yaml
1515
1616lint :
17- cfn-lint * .yaml
18-
17+ cfn-lint * .yaml -i W3002
1918
2019packaged-template.yaml :
2120 aws s3 rm s3://$(S3_BUCKET ) /apprunner/$(S3_PREFIX ) --recursive
Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ Resources:
103103 SysdigConfigLoggingBucket :
104104 Type : AWS::S3::Bucket
105105 Properties :
106- AccessControl : LogDeliveryWrite
106+ OwnershipControls :
107+ Rules :
108+ - ObjectOwnership : BucketOwnerEnforced
107109 PublicAccessBlockConfiguration :
108110 BlockPublicAcls : true
109111 BlockPublicPolicy : true
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ Resources:
2626 CloudTrailLoggingBucket :
2727 Type : AWS::S3::Bucket
2828 Properties :
29- AccessControl : LogDeliveryWrite
29+ OwnershipControls :
30+ Rules :
31+ - ObjectOwnership : BucketOwnerEnforced
3032 PublicAccessBlockConfiguration :
3133 BlockPublicAcls : true
3234 BlockPublicPolicy : true
Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ Resources:
151151 SysdigConfigLoggingBucket :
152152 Type : AWS::S3::Bucket
153153 Properties :
154- AccessControl : LogDeliveryWrite
154+ OwnershipControls :
155+ Rules :
156+ - ObjectOwnership : BucketOwnerEnforced
155157 PublicAccessBlockConfiguration :
156158 BlockPublicAcls : true
157159 BlockPublicPolicy : true
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ STACK_NAME = "SecureForCloudECSTest"
1010.PHONY : packaged-template.yaml
1111
1212validate :
13- aws cloudformation validate-template --template-body file://./CloudVision.yaml
13+ aws cloudformation validate-template --template-body file ://./CloudVision.yaml
1414
1515lint :
16- cfn-lint * .yaml
16+ cfn-lint * .yaml -i W3002
1717
1818packaged-template.yaml :
1919 aws s3 rm s3://$(S3_BUCKET ) /ecs/$(S3_PREFIX ) --recursive
You can’t perform that action at this time.
0 commit comments