Skip to content

Commit

Permalink
Update cur-aggregation.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws authored Mar 17, 2024
1 parent 97aa0ac commit 60e6f63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cfn-templates/cur-aggregation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ Parameters:
Conditions:
IsDestinationAccount: !Equals [!Ref DestinationAccountId, !Ref AWS::AccountId]
IsSourceAccount: !Not [!Condition IsDestinationAccount]
RegionSupportsCURviaCFN: !Equals [!Ref AWS::Region, 'us-east-1']
RegionSupportsCURviaCFN: # CFN supports CUR only in us-east-1 and cn-northwest-1. Other regions must use lambda
Fn::Or:
- !Equals [!Ref AWS::Region, 'us-east-1']
- !Equals [!Ref AWS::Region, 'cn-northwest-1']
CUREnable: !Equals [!Ref CreateCUR, 'True']
DeployCURViaCFNInSource: !And [!Condition CUREnable, !Condition IsSourceAccount, !Condition RegionSupportsCURviaCFN]
DeployCURViaCFNInDestination: !And [!Condition CUREnable, !Condition IsDestinationAccount, !Condition RegionSupportsCURviaCFN]
Expand Down

0 comments on commit 60e6f63

Please sign in to comment.