|
101 | 101 | "input": {
|
102 | 102 | "AutoScalingGroupName": "my-auto-scaling-group",
|
103 | 103 | "LaunchTemplate": {
|
104 |
| - "LaunchTemplateId": "lt-0a20c965061f64abc", |
| 104 | + "LaunchTemplateName": "my-template-for-auto-scaling", |
105 | 105 | "Version": "$Latest"
|
106 | 106 | },
|
107 | 107 | "MaxInstanceLifetime": 2592000,
|
|
125 | 125 | "HealthCheckGracePeriod": 300,
|
126 | 126 | "HealthCheckType": "ELB",
|
127 | 127 | "LaunchTemplate": {
|
128 |
| - "LaunchTemplateId": "lt-0a20c965061f64abc", |
129 |
| - "Version": "$Default" |
| 128 | + "LaunchTemplateName": "my-template-for-auto-scaling", |
| 129 | + "Version": "$Latest" |
130 | 130 | },
|
131 | 131 | "MaxSize": 3,
|
132 | 132 | "MinSize": 1,
|
|
1203 | 1203 | {
|
1204 | 1204 | "input": {
|
1205 | 1205 | "AutoScalingGroupName": "my-auto-scaling-group",
|
1206 |
| - "LifecycleHookName": "my-lifecycle-hook", |
1207 |
| - "LifecycleTransition": "autoscaling:EC2_INSTANCE_LAUNCHING", |
1208 |
| - "NotificationTargetARN": "arn:aws:sns:us-west-2:123456789012:my-sns-topic --role-arn", |
1209 |
| - "RoleARN": "arn:aws:iam::123456789012:role/my-auto-scaling-role" |
| 1206 | + "DefaultResult": "CONTINUE", |
| 1207 | + "HeartbeatTimeout": 300, |
| 1208 | + "LifecycleHookName": "my-launch-lifecycle-hook", |
| 1209 | + "LifecycleTransition": "autoscaling:EC2_INSTANCE_LAUNCHING" |
1210 | 1210 | },
|
1211 | 1211 | "comments": {
|
1212 | 1212 | "input": {
|
1213 | 1213 | },
|
1214 | 1214 | "output": {
|
1215 | 1215 | }
|
1216 | 1216 | },
|
1217 |
| - "description": "This example creates a lifecycle hook.", |
| 1217 | + "description": "This example creates a lifecycle hook for instance launch.", |
1218 | 1218 | "id": "autoscaling-put-lifecycle-hook-1",
|
1219 |
| - "title": "To create a lifecycle hook" |
| 1219 | + "title": "To create a launch lifecycle hook" |
1220 | 1220 | }
|
1221 | 1221 | ],
|
1222 | 1222 | "PutNotificationConfiguration": [
|
|
1303 | 1303 | {
|
1304 | 1304 | "input": {
|
1305 | 1305 | "AutoScalingGroupName": "my-auto-scaling-group",
|
| 1306 | + "InstanceReusePolicy": { |
| 1307 | + "ReuseOnScaleIn": true |
| 1308 | + }, |
1306 | 1309 | "MinSize": 30,
|
1307 |
| - "PoolState": "Stopped" |
| 1310 | + "PoolState": "Hibernated" |
1308 | 1311 | },
|
1309 | 1312 | "comments": {
|
1310 | 1313 | "input": {
|
1311 | 1314 | },
|
1312 | 1315 | "output": {
|
1313 | 1316 | }
|
1314 | 1317 | },
|
1315 |
| - "description": "This example adds a warm pool to the specified Auto Scaling group.", |
| 1318 | + "description": "This example creates a warm pool for the specified Auto Scaling group.", |
1316 | 1319 | "id": "to-add-a-warm-pool-to-an-auto-scaling-group-1617818810383",
|
1317 |
| - "title": "To add a warm pool to an Auto Scaling group" |
| 1320 | + "title": "To create a warm pool for an Auto Scaling group" |
1318 | 1321 | }
|
1319 | 1322 | ],
|
1320 | 1323 | "RecordLifecycleActionHeartbeat": [
|
|
1431 | 1434 | {
|
1432 | 1435 | "input": {
|
1433 | 1436 | "AutoScalingGroupName": "my-auto-scaling-group",
|
| 1437 | + "DesiredConfiguration": { |
| 1438 | + "LaunchTemplate": { |
| 1439 | + "LaunchTemplateName": "my-template-for-auto-scaling", |
| 1440 | + "Version": "$Latest" |
| 1441 | + } |
| 1442 | + }, |
1434 | 1443 | "Preferences": {
|
1435 | 1444 | "InstanceWarmup": 400,
|
1436 |
| - "MinHealthyPercentage": 50 |
| 1445 | + "MinHealthyPercentage": 90, |
| 1446 | + "SkipMatching": true |
1437 | 1447 | }
|
1438 | 1448 | },
|
1439 | 1449 | "output": {
|
|
1490 | 1500 | {
|
1491 | 1501 | "input": {
|
1492 | 1502 | "AutoScalingGroupName": "my-auto-scaling-group",
|
1493 |
| - "LaunchConfigurationName": "new-launch-config" |
1494 |
| - }, |
1495 |
| - "comments": { |
1496 |
| - "input": { |
1497 |
| - }, |
1498 |
| - "output": { |
1499 |
| - } |
1500 |
| - }, |
1501 |
| - "description": "This example updates the launch configuration of the specified Auto Scaling group.", |
1502 |
| - "id": "autoscaling-update-auto-scaling-group-1", |
1503 |
| - "title": "To update the launch configuration" |
1504 |
| - }, |
1505 |
| - { |
1506 |
| - "input": { |
1507 |
| - "AutoScalingGroupName": "my-auto-scaling-group", |
1508 |
| - "MaxSize": 3, |
1509 |
| - "MinSize": 1 |
1510 |
| - }, |
1511 |
| - "comments": { |
1512 |
| - "input": { |
| 1503 | + "LaunchTemplate": { |
| 1504 | + "LaunchTemplateName": "my-template-for-auto-scaling", |
| 1505 | + "Version": "2" |
1513 | 1506 | },
|
1514 |
| - "output": { |
1515 |
| - } |
1516 |
| - }, |
1517 |
| - "description": "This example updates the minimum size and maximum size of the specified Auto Scaling group.", |
1518 |
| - "id": "autoscaling-update-auto-scaling-group-2", |
1519 |
| - "title": "To update the minimum and maximum size" |
1520 |
| - }, |
1521 |
| - { |
1522 |
| - "input": { |
1523 |
| - "AutoScalingGroupName": "my-auto-scaling-group", |
| 1507 | + "MaxSize": 5, |
| 1508 | + "MinSize": 1, |
1524 | 1509 | "NewInstancesProtectedFromScaleIn": true
|
1525 | 1510 | },
|
1526 | 1511 | "comments": {
|
|
1529 | 1514 | "output": {
|
1530 | 1515 | }
|
1531 | 1516 | },
|
1532 |
| - "description": "This example enables instance protection for the specified Auto Scaling group.", |
1533 |
| - "id": "autoscaling-update-auto-scaling-group-3", |
1534 |
| - "title": "To enable instance protection" |
| 1517 | + "description": "This example updates multiple properties at the same time.", |
| 1518 | + "id": "autoscaling-update-auto-scaling-group-1", |
| 1519 | + "title": "To update an Auto Scaling group" |
1535 | 1520 | }
|
1536 | 1521 | ]
|
1537 | 1522 | }
|
|
0 commit comments