From 60e6f6316cf434ea771dc3513fc5874ec1bbb994 Mon Sep 17 00:00:00 2001 From: Iakov GAN <82834333+iakov-aws@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:07:15 +0100 Subject: [PATCH] Update cur-aggregation.yaml --- cfn-templates/cur-aggregation.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cfn-templates/cur-aggregation.yaml b/cfn-templates/cur-aggregation.yaml index ae561777..cf752110 100644 --- a/cfn-templates/cur-aggregation.yaml +++ b/cfn-templates/cur-aggregation.yaml @@ -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]