Skip to content

Commit 0d0ced4

Browse files
committed
Add cn-northwest-1 to CFN template
Previously, cluster up would fail in cn-northwest-1 because the service principal was not resolving correctly. This adds that region to the CFN template. Fixes aws#552
1 parent 3876b7c commit 0d0ced4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ecs-cli/modules/clients/aws/cloudformation/template.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ var template = `
211211
},
212212
"Conditions": {
213213
"IsCNRegion": {
214-
"Fn::Equals": [ { "Ref": "AWS::Region" }, "cn-north-1" ]
214+
"Fn::Or" : [
215+
{"Fn::Equals": [ { "Ref": "AWS::Region" }, "cn-north-1" ]},
216+
{"Fn::Equals": [ { "Ref": "AWS::Region" }, "cn-northwest-1" ]},
217+
]
215218
},
216219
"LaunchInstances": {
217220
"Fn::Equals": [ { "Ref": "IsFargate" }, "false" ]

0 commit comments

Comments
 (0)