aws::autoscaling-group¶
Creates an Auto scaling Group from a Launch Configuration or from a Launch Template.
Example¶
aws::autoscaling-group auto-scaling-group-example
name: "auto-scaling-group-gyro-1"
launch-configuration: $(aws::launch-configuration launch-configuration-auto-scaling-group-example)
availability-zones: [
$(aws::subnet subnet-auto-scaling-group-example | availability-zone)
]
end
aws::autoscaling-group auto-scaling-group-example
name: "auto-scaling-group-gyro-1"
launch-template: $(aws::launch-template launch-template-auto-scaling-group-example)
availability-zones: [
$(aws::subnet subnet-auto-scaling-group-example | availability-zone),
$(aws::subnet subnet-auto-scaling-group-example-2 | availability-zone)
]
scaling-policy
policy-name: "Simple-Policy-1"
adjustment-type: "PercentChangeInCapacity"
policy-type: "SimpleScaling"
cooldown: 3000
scaling-adjustment: 5
min-adjustment-magnitude: 3
end
lifecycle-hook
lifecycle-hook-name: "Lifecycle-Hook-1"
default-result: "CONTINUE"
heartbeat-timeout: 300
lifecycle-transition: "autoscaling:EC2_INSTANCE_LAUNCHING"
end
auto-scaling-notification
topic: "arn:aws:sns:us-west-2:242040583208:gyro-instance-state"
notification-type: "autoscaling:EC2_INSTANCE_LAUNCH_ERROR"
end
end
Attributes¶
Attribute | Description |
---|---|
name | The name of the Auto Scaling Group, also serves as its identifier and thus unique. (Required) |
launch-template | The ID of an launched template that would be used as a skeleton to create the Auto scaling group. Required if launch configuration name not provided. |
availability-zones set | The set of availability zones for the Auto Scaling group to be active in. See Distributing Instances Across Availability Zones. |
capacity-rebalance | When set to true capacity rebalancing is enabled for the Auto Scaling group. |
max-instance-lifetime | The maximum amount of time that an instance can stay in service for the Auto Scaling group. |
max-size | The maximum number of instances for the Auto Scaling group. Minimum allowed value is 0 . (Required) |
min-size | The minimum number of instances for the Auto Scaling group. Minimum allowed value is 0 . (Required) |
desired-capacity | The desired number of instances for the Auto Scaling group. |
default-cooldown | The default cool down period in sec for the Auto Scaling group. Defaults to 300 sec. Minimum allowed value is 0 . See Default Cool downs. |
health-check-type | The type of health check to be performed on the Auto Scaling group. Defaults to EC2 . Valid values are ELB or EC2 . See Health Checks for Auto Scaling Instances. |
health-check-grace-period | The grace period after which health check is started, to give time for the Instances in the Auto scaling group to start up. Defaults to 0 sec. Minimum allowed value is 0 . See Health Checks for Auto Scaling Instances. |
launch-configuration | The name of a launched configuration that would be used as a skeleton to create the Auto scaling group. Required if launch template Id is not provided. |
mixed-instances-policy subresource | The mixed instances policy of the Auto Scaling group.
|
new-instances-protected-from-scale-in | When set to true , protection of instances from Auto Scale Group scale in is enabled. Defaults to false . see Controlling Which Auto Scaling Instances Terminate During Scale In. |
subnets set | The list of subnet’s. If Availability Zone is provided, subnet’s need to be part of that. See Launching Auto Scaling Instances in a VPC. |
enable-metrics-collection | When set to true , cloud watch metrics for your Auto Scaling Group are enabled. Defaults to false . See Monitoring your Auto Scaling Groups. |
disabled-metrics set | The list of cloud watch metrics to be disabled for the Auto Scaling Group. Valid values are GroupMinSize , GroupMaxSize , GroupDesiredCapacity , GroupInServiceInstances , GroupPendingInstances , GroupStandbyInstances , GroupTerminatingInstances and GroupTotalInstances . See Cloud watch metrics. |
tags map | The tags for Auto Scaling Groups. See Tagging Auto Scaling Groups and Instances. |
propagate-at-launch-tags set | The tags in Auto Scaling Groups that the instances need to have as well. See Tagging Auto Scaling Groups and Instances. |
service-linked-role-arn | The arn of the service-linked role that the Auto Scaling Group uses to call other AWS services. |
placement-group | The name of the placement group into which to launch the instances for the Auto Scaling Group. |
instance | The Instance used to create a launch configuration for the Auto Scaling Group. |
classic-load-balancers set | The set of classic load balancers to be attached to the Auto Scaling Group. |
target-groups set | The set of target groups for the Auto Scaling Group. |
termination-policies set | The set of termination policies for the Auto Scaling Group. |
scaling-policy set subresource | The set of policies to trigger for the Auto Scaling Group.
|
lifecycle-hook set subresource | A set of Life cycle hooks for the Auto Scaling Group.
|
scheduled-action set subresource | The set of scheduled actions for the Auto Scaling Group.
|
auto-scaling-notification set subresource | The set of notifications for the Auto Scaling Group.
|
Outputs¶
Attribute | Description |
---|---|
arn | The arn of the Auto Scaling Group. |
status | The status of the Auto Scaling Group. |
created-time | The create time of the Auto Scaling Group. |