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

Amazon EC2 LaunchTemplate Placement

The Placement property type specifies the placement for the instance in an Amazon EC2 launch template.

Placement is a property of the Amazon EC2 LaunchTemplate LaunchTemplateData property type.

Syntax

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

JSON

{ "GroupName" : String, "Tenancy" : String, "AvailabilityZone" : String, "Affinity" : String, "HostId" : String }

YAML

GroupName: String Tenancy: String AvailabilityZone: String Affinity: String HostId: 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

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

Tenancy

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.

Valid values include default, dedicated, and host.

Required: No

Type: String

Update requires: No interruption

See Also

On this page: