AWS::EC2::LaunchTemplate Placement - AWS CloudFormation

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 AWS 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: String AvailabilityZone: String GroupId: String GroupName: String HostId: String HostResourceGroupArn: String PartitionNumber: Integer SpreadDomain: String Tenancy: 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.

Required: 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 | host

Update requires: No interruption

See also