|
50 | 50 | "output": { |
51 | 51 | "ScalableTargets": [ |
52 | 52 | { |
53 | | - "CreationTime": "2016-05-06T11:21:46.199Z", |
| 53 | + "CreationTime": "2019-05-06T11:21:46.199Z", |
54 | 54 | "MaxCapacity": 10, |
55 | 55 | "MinCapacity": 1, |
56 | 56 | "ResourceId": "service/default/web-app", |
|
71 | 71 | "output": { |
72 | 72 | } |
73 | 73 | }, |
74 | | - "description": "This example describes the scalable targets for the ecs service namespace.", |
| 74 | + "description": "This example describes the scalable targets for the ECS service namespace.", |
75 | 75 | "id": "to-describe-scalable-targets-1470864286961", |
76 | 76 | "title": "To describe scalable targets" |
77 | 77 | } |
|
89 | 89 | "ActivityId": "e6c5f7d1-dbbb-4a3f-89b2-51f33e766399", |
90 | 90 | "Cause": "monitor alarm web-app-cpu-lt-25 in state ALARM triggered policy web-app-cpu-lt-25", |
91 | 91 | "Description": "Setting desired count to 1.", |
92 | | - "EndTime": "2016-05-06T16:04:32.111Z", |
| 92 | + "EndTime": "2019-05-06T16:04:32.111Z", |
93 | 93 | "ResourceId": "service/default/web-app", |
94 | 94 | "ScalableDimension": "ecs:service:DesiredCount", |
95 | 95 | "ServiceNamespace": "ecs", |
96 | | - "StartTime": "2016-05-06T16:03:58.171Z", |
| 96 | + "StartTime": "2019-05-06T16:03:58.171Z", |
97 | 97 | "StatusCode": "Successful", |
98 | 98 | "StatusMessage": "Successfully set desired count to 1. Change successfully fulfilled by ecs." |
99 | 99 | } |
|
125 | 125 | "AlarmName": "web-app-cpu-gt-75" |
126 | 126 | } |
127 | 127 | ], |
128 | | - "CreationTime": "2016-05-06T12:11:39.230Z", |
| 128 | + "CreationTime": "2019-05-06T12:11:39.230Z", |
129 | 129 | "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-gt-75", |
130 | 130 | "PolicyName": "web-app-cpu-gt-75", |
131 | 131 | "PolicyType": "StepScaling", |
|
151 | 151 | "output": { |
152 | 152 | } |
153 | 153 | }, |
154 | | - "description": "This example describes the scaling policies for the ecs service namespace.", |
| 154 | + "description": "This example describes the scaling policies for the ECS service namespace.", |
155 | 155 | "id": "to-describe-scaling-policies-1470864609734", |
156 | 156 | "title": "To describe scaling policies" |
157 | 157 | } |
|
195 | 195 | "description": "The following example applies a target tracking scaling policy with a predefined metric specification to an Amazon ECS service called web-app in the default cluster. The policy keeps the average CPU utilization of the service at 75 percent, with scale-out and scale-in cooldown periods of 60 seconds.", |
196 | 196 | "id": "to-apply-a-target-tracking-scaling-policy-with-a-predefined-metric-specification-1569364247984", |
197 | 197 | "title": "To apply a target tracking scaling policy with a predefined metric specification" |
198 | | - }, |
199 | | - { |
200 | | - "input": { |
201 | | - "PolicyName": "cms75-target-tracking-scaling-policy", |
202 | | - "PolicyType": "TargetTrackingScaling", |
203 | | - "ResourceId": "service/default/web-app", |
204 | | - "ScalableDimension": "ecs:service:DesiredCount", |
205 | | - "ServiceNamespace": "ecs", |
206 | | - "TargetTrackingScalingPolicyConfiguration": { |
207 | | - "CustomizedMetricSpecification": { |
208 | | - "Dimensions": [ |
209 | | - { |
210 | | - "Name": "MyOptionalMetricDimensionName", |
211 | | - "Value": "MyOptionalMetricDimensionValue" |
212 | | - } |
213 | | - ], |
214 | | - "MetricName": "MyUtilizationMetric", |
215 | | - "Namespace": "MyNamespace", |
216 | | - "Statistic": "Average", |
217 | | - "Unit": "Percent" |
218 | | - }, |
219 | | - "ScaleInCooldown": 60, |
220 | | - "ScaleOutCooldown": 60, |
221 | | - "TargetValue": 75 |
222 | | - } |
223 | | - }, |
224 | | - "output": { |
225 | | - "Alarms": [ |
226 | | - { |
227 | | - "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmHigh-9bc77b56-0571-4276-ba0f-d4178882e0a0", |
228 | | - "AlarmName": "TargetTracking-service/default/web-app-AlarmHigh-9bc77b56-0571-4276-ba0f-d4178882e0a0" |
229 | | - }, |
230 | | - { |
231 | | - "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmLow-9b6ad934-6d37-438e-9e05-02836ddcbdc4", |
232 | | - "AlarmName": "TargetTracking-service/default/web-app-AlarmLow-9b6ad934-6d37-438e-9e05-02836ddcbdc4" |
233 | | - } |
234 | | - ], |
235 | | - "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy: 8784a896-b2ba-47a1-b08c-27301cc499a1:resource/ecs/service/default/web-app:policyName/cms75-target-tracking-scaling-policy" |
236 | | - }, |
237 | | - "comments": { |
238 | | - "input": { |
239 | | - }, |
240 | | - "output": { |
241 | | - } |
242 | | - }, |
243 | | - "description": "The following example applies a target tracking scaling policy with a customized metric specification to an Amazon ECS service called web-app in the default cluster. The policy keeps the average utilization of the service at 75 percent, with scale-out and scale-in cooldown periods of 60 seconds. ", |
244 | | - "id": "to-apply-a-target-tracking-scaling-policy-with-a-customized-metric-specification-1569365036205", |
245 | | - "title": "To apply a target tracking scaling policy with a customized metric specification" |
246 | | - }, |
247 | | - { |
248 | | - "input": { |
249 | | - "PolicyName": "alb-scale-out-target-tracking-scaling-policy", |
250 | | - "PolicyType": "TargetTrackingScaling", |
251 | | - "ResourceId": "service/default/web-app", |
252 | | - "ScalableDimension": "ecs:service:DesiredCount", |
253 | | - "ServiceNamespace": "ecs", |
254 | | - "TargetTrackingScalingPolicyConfiguration": { |
255 | | - "DisableScaleIn": true, |
256 | | - "PredefinedMetricSpecification": { |
257 | | - "PredefinedMetricType": "ALBRequestCountPerTarget", |
258 | | - "ResourceLabel": "app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d" |
259 | | - }, |
260 | | - "ScaleInCooldown": 60, |
261 | | - "ScaleOutCooldown": 60, |
262 | | - "TargetValue": 1000 |
263 | | - } |
264 | | - }, |
265 | | - "output": { |
266 | | - "Alarms": [ |
267 | | - { |
268 | | - "AlarmARN": "TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca", |
269 | | - "AlarmName": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca" |
270 | | - } |
271 | | - ], |
272 | | - "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/alb-scale-out-target-tracking-scaling-policy" |
273 | | - }, |
274 | | - "comments": { |
275 | | - "input": { |
276 | | - }, |
277 | | - "output": { |
278 | | - } |
279 | | - }, |
280 | | - "description": "The following example applies a target tracking scaling policy to an Amazon ECS service called web-app in the default cluster. The policy is used to scale out the ECS service when the RequestCountPerTarget metric from the Application Load Balancer exceeds the threshold.", |
281 | | - "id": "to-apply-a-target-tracking-scaling-policy-for-scale-out-only-1569366080118", |
282 | | - "title": "To apply a target tracking scaling policy for scale out only" |
283 | | - }, |
284 | | - { |
285 | | - "input": { |
286 | | - "PolicyName": "web-app-cpu-gt-75", |
287 | | - "PolicyType": "StepScaling", |
288 | | - "ResourceId": "service/default/web-app", |
289 | | - "ScalableDimension": "ecs:service:DesiredCount", |
290 | | - "ServiceNamespace": "ecs", |
291 | | - "StepScalingPolicyConfiguration": { |
292 | | - "AdjustmentType": "PercentChangeInCapacity", |
293 | | - "Cooldown": 60, |
294 | | - "StepAdjustments": [ |
295 | | - { |
296 | | - "MetricIntervalLowerBound": 0, |
297 | | - "ScalingAdjustment": 200 |
298 | | - } |
299 | | - ] |
300 | | - } |
301 | | - }, |
302 | | - "output": { |
303 | | - "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-gt-75" |
304 | | - }, |
305 | | - "comments": { |
306 | | - "input": { |
307 | | - }, |
308 | | - "output": { |
309 | | - } |
310 | | - }, |
311 | | - "description": "This example applies a step scaling policy to an Amazon ECS service called web-app in the default cluster. The policy increases the desired count of the service by 200%, with a cool down period of 60 seconds.", |
312 | | - "id": "to-apply-a-step-scaling-policy-to-an-amazon-ecs-service-1470864779862", |
313 | | - "title": "To apply a step scaling policy to an Amazon ECS service" |
314 | | - }, |
315 | | - { |
316 | | - "input": { |
317 | | - "PolicyName": "fleet-cpu-gt-75", |
318 | | - "PolicyType": "StepScaling", |
319 | | - "ResourceId": "spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3", |
320 | | - "ScalableDimension": "ec2:spot-fleet-request:TargetCapacity", |
321 | | - "ServiceNamespace": "ec2", |
322 | | - "StepScalingPolicyConfiguration": { |
323 | | - "AdjustmentType": "PercentChangeInCapacity", |
324 | | - "Cooldown": 180, |
325 | | - "StepAdjustments": [ |
326 | | - { |
327 | | - "MetricIntervalLowerBound": 0, |
328 | | - "ScalingAdjustment": 200 |
329 | | - } |
330 | | - ] |
331 | | - } |
332 | | - }, |
333 | | - "output": { |
334 | | - "PolicyARN": "arn:aws:autoscaling:us-east-1:012345678910:scalingPolicy:89406401-0cb7-4130-b770-d97cca0e446b:resource/ec2/spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3:policyName/fleet-cpu-gt-75" |
335 | | - }, |
336 | | - "comments": { |
337 | | - "input": { |
338 | | - }, |
339 | | - "output": { |
340 | | - } |
341 | | - }, |
342 | | - "description": "This example applies a step scaling policy to an Amazon EC2 Spot fleet. The policy increases the target capacity of the spot fleet by 200%, with a cool down period of 180 seconds.\",\n ", |
343 | | - "id": "to-apply-a-step-scaling-policy-to-an-amazon-ec2-spot-fleet-1472073278469", |
344 | | - "title": "To apply a step scaling policy to an Amazon EC2 Spot fleet" |
345 | 198 | } |
346 | 199 | ], |
347 | 200 | "RegisterScalableTarget": [ |
|
362 | 215 | "description": "This example registers a scalable target from an Amazon ECS service called web-app that is running on the default cluster, with a minimum desired count of 1 task and a maximum desired count of 10 tasks.", |
363 | 216 | "id": "to-register-a-new-scalable-target-1470864910380", |
364 | 217 | "title": "To register an ECS service as a scalable target" |
365 | | - }, |
366 | | - { |
367 | | - "input": { |
368 | | - "MaxCapacity": 10, |
369 | | - "MinCapacity": 1, |
370 | | - "ResourceId": "spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3", |
371 | | - "ScalableDimension": "ec2:spot-fleet-request:TargetCapacity", |
372 | | - "ServiceNamespace": "ec2" |
373 | | - }, |
374 | | - "output": { |
375 | | - }, |
376 | | - "comments": { |
377 | | - }, |
378 | | - "description": "This example registers a scalable target from an Amazon EC2 Spot fleet with a minimum target capacity of 1 and a maximum of 10.", |
379 | | - "id": "to-register-an-ec2-spot-fleet-as-a-scalable-target-1472072899649", |
380 | | - "title": "To register an EC2 Spot fleet as a scalable target" |
381 | 218 | } |
382 | 219 | ] |
383 | 220 | } |
|
0 commit comments