File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ Parameters:
20
20
Conditions :
21
21
DeployAPIRouterCondition : !Not [!Equals [!Ref APIRouterImageURI, ""]]
22
22
UseSpotCondition : !Equals [!Ref UseSpot, "yes"]
23
+ IsChinaRegionCondition : !Or
24
+ - !Equals [!Ref "AWS::Region", "cn-north-1"]
25
+ - !Equals [!Ref "AWS::Region", "cn-northwest-1"]
23
26
24
27
Resources :
25
28
ECSCluster :
@@ -251,7 +254,10 @@ Resources:
251
254
Statement :
252
255
- Effect : Allow
253
256
Principal :
254
- Service : [ecs-tasks.amazonaws.com]
257
+ Service :
258
+ - ecs-tasks.amazonaws.com
259
+ - application-autoscaling.amazonaws.com
260
+ - !If [IsChinaRegionCondition, "application-autoscaling.amazonaws.com.cn", !Ref "AWS::NoValue"]
255
261
Action : ['sts:AssumeRole']
256
262
Path : /
257
263
Policies :
@@ -267,6 +273,10 @@ Resources:
267
273
- ' ecr:BatchGetImage'
268
274
- ' logs:CreateLogStream'
269
275
- ' logs:PutLogEvents'
276
+ - ' ecs:UpdateService'
277
+ - ' ecs:DescribeServices'
278
+ - ' cloudwatch:DescribeAlarms'
279
+ - ' cloudwatch:PutMetricAlarm'
270
280
Resource : ' *'
271
281
272
282
APIRouterTaskRole :
You can’t perform that action at this time.
0 commit comments