|
58 | 58 | "title": "To attach a load balancer to an Auto Scaling group"
|
59 | 59 | }
|
60 | 60 | ],
|
| 61 | + "CancelInstanceRefresh": [ |
| 62 | + { |
| 63 | + "input": { |
| 64 | + "AutoScalingGroupName": "my-auto-scaling-group" |
| 65 | + }, |
| 66 | + "output": { |
| 67 | + "InstanceRefreshId": "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b" |
| 68 | + }, |
| 69 | + "comments": { |
| 70 | + "input": { |
| 71 | + }, |
| 72 | + "output": { |
| 73 | + } |
| 74 | + }, |
| 75 | + "description": "This example cancels an instance refresh operation in progress.", |
| 76 | + "id": "to-cancel-an-instance-refresh-1592960979817", |
| 77 | + "title": "To cancel an instance refresh" |
| 78 | + } |
| 79 | + ], |
61 | 80 | "CompleteLifecycleAction": [
|
62 | 81 | {
|
63 | 82 | "input": {
|
|
81 | 100 | {
|
82 | 101 | "input": {
|
83 | 102 | "AutoScalingGroupName": "my-auto-scaling-group",
|
84 |
| - "LaunchConfigurationName": "my-launch-config", |
| 103 | + "LaunchTemplate": { |
| 104 | + "LaunchTemplateId": "lt-0a20c965061f64abc", |
| 105 | + "Version": "$Latest" |
| 106 | + }, |
| 107 | + "MaxInstanceLifetime": 2592000, |
85 | 108 | "MaxSize": 3,
|
86 | 109 | "MinSize": 1,
|
87 |
| - "VPCZoneIdentifier": "subnet-4176792c" |
| 110 | + "VPCZoneIdentifier": "subnet-057fa0918fEXAMPLE" |
88 | 111 | },
|
89 | 112 | "comments": {
|
90 | 113 | "input": {
|
|
99 | 122 | {
|
100 | 123 | "input": {
|
101 | 124 | "AutoScalingGroupName": "my-auto-scaling-group",
|
102 |
| - "AvailabilityZones": [ |
103 |
| - "us-west-2c" |
104 |
| - ], |
105 | 125 | "HealthCheckGracePeriod": 120,
|
106 | 126 | "HealthCheckType": "ELB",
|
107 | 127 | "LaunchConfigurationName": "my-launch-config",
|
108 |
| - "LoadBalancerNames": [ |
109 |
| - "my-load-balancer" |
110 |
| - ], |
111 | 128 | "MaxSize": 3,
|
112 |
| - "MinSize": 1 |
| 129 | + "MinSize": 1, |
| 130 | + "TargetGroupARNs": [ |
| 131 | + "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067" |
| 132 | + ], |
| 133 | + "VPCZoneIdentifier": "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE" |
113 | 134 | },
|
114 | 135 | "comments": {
|
115 | 136 | "input": {
|
116 | 137 | },
|
117 | 138 | "output": {
|
118 | 139 | }
|
119 | 140 | },
|
120 |
| - "description": "This example creates an Auto Scaling group and attaches the specified Classic Load Balancer.", |
| 141 | + "description": "This example creates an Auto Scaling group and attaches the specified target group.", |
121 | 142 | "id": "autoscaling-create-auto-scaling-group-2",
|
122 |
| - "title": "To create an Auto Scaling group with an attached load balancer" |
| 143 | + "title": "To create an Auto Scaling group with an attached target group" |
123 | 144 | },
|
124 | 145 | {
|
125 | 146 | "input": {
|
126 | 147 | "AutoScalingGroupName": "my-auto-scaling-group",
|
| 148 | + "AvailabilityZones": [ |
| 149 | + "us-west-2c" |
| 150 | + ], |
127 | 151 | "HealthCheckGracePeriod": 120,
|
128 | 152 | "HealthCheckType": "ELB",
|
129 | 153 | "LaunchConfigurationName": "my-launch-config",
|
130 |
| - "MaxSize": 3, |
131 |
| - "MinSize": 1, |
132 |
| - "TargetGroupARNs": [ |
133 |
| - "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067" |
| 154 | + "LoadBalancerNames": [ |
| 155 | + "my-load-balancer" |
134 | 156 | ],
|
135 |
| - "VPCZoneIdentifier": "subnet-4176792c, subnet-65ea5f08" |
| 157 | + "MaxSize": 3, |
| 158 | + "MinSize": 1 |
136 | 159 | },
|
137 | 160 | "comments": {
|
138 | 161 | "input": {
|
139 | 162 | },
|
140 | 163 | "output": {
|
141 | 164 | }
|
142 | 165 | },
|
143 |
| - "description": "This example creates an Auto Scaling group and attaches the specified target group.", |
| 166 | + "description": "This example creates an Auto Scaling group and attaches the specified Classic Load Balancer.", |
144 | 167 | "id": "autoscaling-create-auto-scaling-group-3",
|
145 |
| - "title": "To create an Auto Scaling group with an attached target group" |
| 168 | + "title": "To create an Auto Scaling group with an attached load balancer" |
146 | 169 | }
|
147 | 170 | ],
|
148 | 171 | "CreateLaunchConfiguration": [
|
|
283 | 306 | {
|
284 | 307 | "input": {
|
285 | 308 | "AutoScalingGroupName": "my-auto-scaling-group",
|
286 |
| - "PolicyName": "ScaleIn" |
| 309 | + "PolicyName": "my-step-scale-out-policy" |
287 | 310 | },
|
288 | 311 | "comments": {
|
289 | 312 | "input": {
|
|
378 | 401 | },
|
379 | 402 | "description": "This example describes the available adjustment types.",
|
380 | 403 | "id": "autoscaling-describe-adjustment-types-1",
|
381 |
| - "title": "To describe the Auto Scaling adjustment types" |
| 404 | + "title": "To describe the Amazon EC2 Auto Scaling adjustment types" |
382 | 405 | }
|
383 | 406 | ],
|
384 | 407 | "DescribeAutoScalingGroups": [
|
|
498 | 521 | "title": "To describe the Auto Scaling notification types"
|
499 | 522 | }
|
500 | 523 | ],
|
| 524 | + "DescribeInstanceRefreshes": [ |
| 525 | + { |
| 526 | + "input": { |
| 527 | + "AutoScalingGroupName": "my-auto-scaling-group" |
| 528 | + }, |
| 529 | + "output": { |
| 530 | + "InstanceRefreshes": [ |
| 531 | + { |
| 532 | + "AutoScalingGroupName": "my-auto-scaling-group", |
| 533 | + "InstanceRefreshId": "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b", |
| 534 | + "InstancesToUpdate": 5, |
| 535 | + "PercentageComplete": 0, |
| 536 | + "StartTime": "2020-06-02T18:11:27Z", |
| 537 | + "Status": "InProgress" |
| 538 | + }, |
| 539 | + { |
| 540 | + "AutoScalingGroupName": "my-auto-scaling-group", |
| 541 | + "EndTime": "2020-06-02T16:53:37Z", |
| 542 | + "InstanceRefreshId": "dd7728d0-5bc4-4575-96a3-1b2c52bf8bb1", |
| 543 | + "InstancesToUpdate": 0, |
| 544 | + "PercentageComplete": 100, |
| 545 | + "StartTime": "2020-06-02T16:43:19Z", |
| 546 | + "Status": "Successful" |
| 547 | + } |
| 548 | + ] |
| 549 | + }, |
| 550 | + "comments": { |
| 551 | + "input": { |
| 552 | + }, |
| 553 | + "output": { |
| 554 | + } |
| 555 | + }, |
| 556 | + "description": "This example describes the instance refreshes for the specified Auto Scaling group.", |
| 557 | + "id": "to-list-instance-refreshes-1592959593746", |
| 558 | + "title": "To list instance refreshes" |
| 559 | + } |
| 560 | + ], |
501 | 561 | "DescribeLaunchConfigurations": [
|
502 | 562 | {
|
503 | 563 | "input": {
|
|
752 | 812 | },
|
753 | 813 | "description": "This example describes the policies for the specified Auto Scaling group.",
|
754 | 814 | "id": "autoscaling-describe-policies-1",
|
755 |
| - "title": "To describe Auto Scaling policies" |
| 815 | + "title": "To describe scaling policies" |
756 | 816 | }
|
757 | 817 | ],
|
758 | 818 | "DescribeScalingActivities": [
|
|
1067 | 1127 | {
|
1068 | 1128 | "input": {
|
1069 | 1129 | "AutoScalingGroupName": "my-auto-scaling-group",
|
1070 |
| - "HonorCooldown": true, |
1071 |
| - "PolicyName": "ScaleIn" |
| 1130 | + "BreachThreshold": 50.0, |
| 1131 | + "MetricValue": 59.0, |
| 1132 | + "PolicyName": "my-step-scale-out-policy" |
1072 | 1133 | },
|
1073 | 1134 | "comments": {
|
1074 | 1135 | "input": {
|
1075 | 1136 | },
|
1076 | 1137 | "output": {
|
1077 | 1138 | }
|
1078 | 1139 | },
|
1079 |
| - "description": "This example executes the specified Auto Scaling policy for the specified Auto Scaling group.", |
| 1140 | + "description": "This example executes the specified policy.", |
1080 | 1141 | "id": "autoscaling-execute-policy-1",
|
1081 |
| - "title": "To execute an Auto Scaling policy" |
| 1142 | + "title": "To execute a scaling policy" |
1082 | 1143 | }
|
1083 | 1144 | ],
|
1084 | 1145 | "ExitStandby": [
|
|
1157 | 1218 | "PutScalingPolicy": [
|
1158 | 1219 | {
|
1159 | 1220 | "input": {
|
1160 |
| - "AdjustmentType": "ChangeInCapacity", |
1161 | 1221 | "AutoScalingGroupName": "my-auto-scaling-group",
|
1162 |
| - "PolicyName": "ScaleIn", |
1163 |
| - "ScalingAdjustment": -1 |
| 1222 | + "PolicyName": "alb1000-target-tracking-scaling-policy", |
| 1223 | + "PolicyType": "TargetTrackingScaling", |
| 1224 | + "TargetTrackingConfiguration": { |
| 1225 | + "PredefinedMetricSpecification": { |
| 1226 | + "PredefinedMetricType": "ALBRequestCountPerTarget", |
| 1227 | + "ResourceLabel": "app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d" |
| 1228 | + }, |
| 1229 | + "TargetValue": 1000.0 |
| 1230 | + } |
1164 | 1231 | },
|
1165 | 1232 | "output": {
|
1166 |
| - "PolicyARN": "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:2233f3d7-6290-403b-b632-93c553560106:autoScalingGroupName/my-auto-scaling-group:policyName/ScaleIn" |
| 1233 | + "Alarms": [ |
| 1234 | + { |
| 1235 | + "AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e", |
| 1236 | + "AlarmName": "TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e" |
| 1237 | + }, |
| 1238 | + { |
| 1239 | + "AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2", |
| 1240 | + "AlarmName": "TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2" |
| 1241 | + } |
| 1242 | + ], |
| 1243 | + "PolicyARN": "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:228f02c2-c665-4bfd-aaac-8b04080bea3c:autoScalingGroupName/my-auto-scaling-group:policyName/alb1000-target-tracking-scaling-policy" |
1167 | 1244 | },
|
1168 | 1245 | "comments": {
|
1169 | 1246 | "input": {
|
|
1308 | 1385 | "title": "To disable instance protection for an instance"
|
1309 | 1386 | }
|
1310 | 1387 | ],
|
| 1388 | + "StartInstanceRefresh": [ |
| 1389 | + { |
| 1390 | + "input": { |
| 1391 | + "AutoScalingGroupName": "my-auto-scaling-group", |
| 1392 | + "Preferences": { |
| 1393 | + "InstanceWarmup": 400, |
| 1394 | + "MinHealthyPercentage": 50 |
| 1395 | + } |
| 1396 | + }, |
| 1397 | + "output": { |
| 1398 | + "InstanceRefreshId": "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b" |
| 1399 | + }, |
| 1400 | + "comments": { |
| 1401 | + "input": { |
| 1402 | + }, |
| 1403 | + "output": { |
| 1404 | + } |
| 1405 | + }, |
| 1406 | + "description": "This example starts an instance refresh for the specified Auto Scaling group.", |
| 1407 | + "id": "to-start-an-instance-refresh-1592957271522", |
| 1408 | + "title": "To start an instance refresh" |
| 1409 | + } |
| 1410 | + ], |
1311 | 1411 | "SuspendProcesses": [
|
1312 | 1412 | {
|
1313 | 1413 | "input": {
|
|
0 commit comments