Skip to content

Commit

Permalink
Merge pull request #18 from CurryEleison/cfn-lint-partitions
Browse files Browse the repository at this point in the history
Fix linting warnings relating to AWS partitions
  • Loading branch information
dflook authored Feb 6, 2023
2 parents 070ec56 + a54d144 commit 6834e21
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ CustomAcmCertificateLambdaExecutionRole:
- acm:RemoveTagsFromCertificate
Effect: Allow
Resource:
- !Sub 'arn:aws:acm:*:${AWS::AccountId}:certificate/*'
- !Sub 'arn:${AWS::Partition}:acm:*:${AWS::AccountId}:certificate/*'
- Action:
- acm:RequestCertificate
- acm:ListTagsForCertificate
Expand Down
2 changes: 1 addition & 1 deletion cloudformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"Effect": "Allow",
"Resource": [
{
"Fn::Sub": "arn:aws:acm:*:${AWS::AccountId}:certificate/*"
"Fn::Sub": "arn:${AWS::Partition}:acm:*:${AWS::AccountId}:certificate/*"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Resources:
- acm:RemoveTagsFromCertificate
Effect: Allow
Resource:
- !Sub 'arn:aws:acm:*:${AWS::AccountId}:certificate/*'
- !Sub 'arn:${AWS::Partition}:acm:*:${AWS::AccountId}:certificate/*'
- Action:
- acm:RequestCertificate
- acm:ListTagsForCertificate
Expand Down
2 changes: 1 addition & 1 deletion src/troposphere_dns_certificate/certificatemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def add_helpers(template):
Action('acm', 'RemoveTagsFromCertificate'),

],
Resource=[Sub('arn:aws:acm:*:${AWS::AccountId}:certificate/*')],
Resource=[Sub('arn:${AWS::Partition}:acm:*:${AWS::AccountId}:certificate/*')],
),
Statement(
Effect=Allow,
Expand Down

0 comments on commit 6834e21

Please sign in to comment.