AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon EC2 Auto Scaling AutoScalingGroup MixedInstancesPolicy

The MixedInstancesPolicy property type describes a mixed instances policy for an Auto Scaling group. With mixed instances, your Auto Scaling group can provision a combination of On-Demand Instances and Spot Instances across multiple instance types. For more information, see Using Multiple Instance Types and Purchase Options in the Amazon EC2 Auto Scaling User Guide.

When you create your Auto Scaling group, you can specify a launch configuration or template as a parameter for the top-level object, or you can specify a mixed instances policy, but not both at the same time.

MixedInstancesPolicy is a property of the AWS::AutoScaling::AutoScalingGroup resource type.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

Properties

InstancesDistribution

The instances distribution to use. If you leave this parameter unspecified when creating the group, the default values are used.

Required: No

Type: InstancesDistribution

Update requires: No interruption

LaunchTemplate

The launch template and overrides.

Required: Yes

Type: LaunchTemplate

Update requires: No interruption

See Also

On this page: