This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::EC2::EC2Fleet Placement
Describes the placement of an instance.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Affinity" :String, "AvailabilityZone" :String, "GroupName" :String, "HostId" :String, "HostResourceGroupArn" :String, "PartitionNumber" :Integer, "SpreadDomain" :String, "Tenancy" :String}
YAML
Affinity:StringAvailabilityZone:StringGroupName:StringHostId:StringHostResourceGroupArn:StringPartitionNumber:IntegerSpreadDomain:StringTenancy:String
Properties
- Affinity
- 
                    The affinity setting for the instance on the Dedicated Host. This parameter is not supported for CreateFleet or ImportInstance. Required: No Type: String Update requires: Replacement 
- AvailabilityZone
- 
                    The Availability Zone of the instance. On input, you can specify AvailabilityZoneorAvailabilityZoneId, but not both. If you specify neither one, Amazon EC2 automatically selects an Availability Zone for you.This parameter is not supported for CreateFleet. Required: No Type: String Update requires: Replacement 
- GroupName
- 
                    The name of the placement group that the instance is in. On input, you can specify GroupIdorGroupName, but not both.Required: No Type: String Update requires: Replacement 
- HostId
- 
                    The ID of the Dedicated Host on which the instance resides. This parameter is not supported for CreateFleet or ImportInstance. Required: No Type: String Update requires: Replacement 
- HostResourceGroupArn
- 
                    The ARN of the host resource group in which to launch the instances. On input, if you specify this parameter, either omit the Tenancy parameter or set it to host.This parameter is not supported for CreateFleet. Required: No Type: String Update requires: Replacement 
- PartitionNumber
- 
                    The number of the partition that the instance is in. Valid only if the placement group strategy is set to partition.This parameter is not supported for CreateFleet. Required: No Type: Integer Update requires: Replacement 
- SpreadDomain
- 
                    Reserved for future use. Required: No Type: String Update requires: Replacement 
- Tenancy
- 
                    The tenancy of the instance. An instance with a tenancy of dedicatedruns on single-tenant hardware.This parameter is not supported for CreateFleet. The hosttenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimitedCPU credit option.Required: No Type: String Allowed values: default | dedicated | hostUpdate requires: Replacement