@@ -153,10 +153,12 @@ Conditions:
153153 Fn::Or :
154154 - !Not [!Condition IsDestinationAccount]
155155 - !Equals [!Ref 'AWS::AccountId', !Select [0, !Split [',', !Sub '${SourceAccountIds},']]]
156- RegionSupportsDataExportsViaCFN : # CFN supports DataExports only in us-east-1 and cn-northwest-1 . Other regions must use lambda.
156+ RegionSupportsDataExportsViaCFN : # CFN supports DataExports only in several regions . Other regions must use lambda.
157157 Fn::Or :
158158 - !Equals [!Ref 'AWS::Region', 'us-east-1']
159159 - !Equals [!Ref 'AWS::Region', 'cn-northwest-1']
160+ - !Equals [!Ref 'AWS::Region', 'us-iso-east-1']
161+ - !Equals [!Ref 'AWS::Region', 'us-iso-west-1']
160162 ManageCUR2 : !Equals [!Ref ManageCUR2, 'yes']
161163 ManageFOCUS : !Equals [!Ref ManageFOCUS, 'yes']
162164 ManageCOH : !Equals [!Ref ManageCOH, 'yes']
@@ -1159,8 +1161,12 @@ Resources:
11591161 import boto3
11601162 import cfnresponse
11611163
1162- # DataExports only exist in us-east-1 and cn-northwest-1 regions
1163- region = 'us-east-1' if not os.environ['AWS_REGION'].startswith('cn-') else 'cn-northwest-1'
1164+ # DataExports only exist in paricular regions
1165+ region = 'us-east-1'
1166+ if os.environ['AWS_REGION'].startswith('cn-'):
1167+ region = 'cn-northwest-1'
1168+ if os.environ['AWS_REGION'].startswith('us-iso-'):
1169+ region = os.environ['AWS_REGION']
11641170
11651171 client = boto3.client('bcm-data-exports', region_name=region)
11661172
0 commit comments