Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .cfnlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
templates:
- ./**/template.yml
- ./**/account_processing.yml
- ./resources/*.yaml
- ./**/example-global-iam.yml
- ./**/global.yml
- ./**/regional.yml
ignore_templates:
- ./**/appspec.yml
- ./**/appspec.yaml
- ./**/buildspec.yml
- ./**/buildspec.yaml
- ./**/params/*.yml
- ./**/params/*.yaml
include_checks:
- I
2 changes: 1 addition & 1 deletion samples/sample-ec2-with-codedeploy/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,6 @@ Resources:
Outputs:
LoadBalancerExternalUrl:
Description: The url of the external load balancer
Value: !Join ['', ['http://', !GetAtt 'PublicLoadBalancer.DNSName']]
Value: !Sub http://${PublicLoadBalancer.DNSName}
Export:
Name: 'LoadBalancerExternalUrl'
2 changes: 1 addition & 1 deletion samples/sample-ecs-cluster/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Outputs:
Name: 'ClusterName'
ExternalUrl:
Description: The url of the external load balancer
Value: !Join ['', ['http://', !GetAtt 'PublicLoadBalancer.DNSName']]
Value: !Sub http://${PublicLoadBalancer.DNSName}
Export:
Name: 'ExternalUrl'
ECSRole:
Expand Down
2 changes: 1 addition & 1 deletion src/account_processing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Resources:
- Effect: Allow
Action:
- "sts:AssumeRole"
Resource: !Sub "arn:aws:iam::*:role/${CrossAccountAccessRoleName}"
Resource: !Sub "arn:${AWS::Partition}:iam::*:role/${CrossAccountAccessRoleName}"
Roles:
- !Ref AccountProcessingLambdaRole
- !Ref GetAccountRegionsFunctionRole
Expand Down
8 changes: 5 additions & 3 deletions src/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ Resources:
ADFVersion: !FindInMap ['Metadata', 'ADF', 'Version']
OrganizationID: !GetAtt Organization.OrganizationId
CrossAccountAccessRoleName: !Ref CrossAccountAccessRoleName
UpdateReplacePolicy: Delete
DeletionPolicy: Delete
LambdaLayerVersion:
Type: "AWS::Serverless::LayerVersion"
Properties:
Expand Down Expand Up @@ -471,12 +473,12 @@ Resources:
Resource:
- !GetAtt "BootstrapTemplatesBucket.Arn"
- !Sub "${BootstrapTemplatesBucket.Arn}/*"
- !GetAtt BootstrapArtifactStorageBucket.Arn
- !GetAtt "BootstrapArtifactStorageBucket.Arn"
- !Sub "${BootstrapArtifactStorageBucket.Arn}/*"
- !Sub "arn:${AWS::Partition}:s3:::${SharedModulesBucket.BucketName}"
- !Sub "arn:${AWS::Partition}:s3:::${SharedModulesBucket.BucketName}/*"
- !Sub "arn:aws:s3:::${AccountProcessingApplication.Outputs.Bucket}"
- !Sub "arn:aws:s3:::${AccountProcessingApplication.Outputs.Bucket}/*"
- !Sub "arn:${AWS::Partition}:s3:::${AccountProcessingApplication.Outputs.Bucket}"
- !Sub "arn:${AWS::Partition}:s3:::${AccountProcessingApplication.Outputs.Bucket}/*"
- Effect: "Allow"
Action:
- "codebuild:*"
Expand Down