This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::EC2::LaunchTemplate Placement
Specifies the placement of an instance.
Placement is a property of AWS::EC2::LaunchTemplate LaunchTemplateData.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Affinity" :String, "AvailabilityZone" :String, "GroupId" :String, "GroupName" :String, "HostId" :String, "HostResourceGroupArn" :String, "PartitionNumber" :Integer, "SpreadDomain" :String, "Tenancy" :String}
YAML
Affinity:StringAvailabilityZone:StringGroupId:StringGroupName:StringHostId:StringHostResourceGroupArn:StringPartitionNumber:IntegerSpreadDomain:StringTenancy:String
Properties
Affinity-
The affinity setting for an instance on a Dedicated Host.
Required: No
Type: String
Update requires: No interruption
AvailabilityZone-
The Availability Zone for the instance.
Either
AvailabilityZoneorAvailabilityZoneIdcan be specified, but not bothRequired: No
Type: String
Update requires: No interruption
GroupId-
The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
Required: No
Type: String
Update requires: No interruption
GroupName-
The name of the placement group for the instance.
Required: No
Type: String
Update requires: No interruption
HostId-
The ID of the Dedicated Host for the instance.
Required: No
Type: String
Update requires: No interruption
HostResourceGroupArn-
The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to
host.Required: No
Type: String
Update requires: No interruption
PartitionNumber-
The number of the partition the instance should launch in. Valid only if the placement group strategy is set to
partition.Required: No
Type: Integer
Update requires: No interruption
SpreadDomain-
Reserved for future use.
Required: No
Type: String
Update requires: No interruption
Tenancy-
The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.
Required: No
Type: String
Allowed values:
default | dedicated | hostUpdate requires: No interruption
See also
-
LaunchTemplatePlacementRequest in the Amazon EC2 API Reference
-
Create a launch template using advanced settings in the Amazon EC2 Auto Scaling User Guide
Warning Javascript is disabled or is unavailable in your browser.
To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.