AWS::EC2::PlacementGroup
The AWS::EC2::PlacementGroup resource is a logical grouping of instances
within a single Availability Zone (AZ) that enables applications to participate in
a
low-latency, 10 Gbps network. You create a placement group first, and then you can
launch
instances in the placement group.
Topics
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::EC2::PlacementGroup", "Properties" : { "Strategy" :String} }
YAML
Type: AWS::EC2::PlacementGroup Properties: Strategy:String
Properties
Strategy-
The placement strategy, which relates to the instance types that can be added to the placement group. For example, for the
clusterstrategy, you can cluster C4 instance types but not T2 instance types. For valid values, see CreatePlacementGroup in the Amazon EC2 API Reference. By default, AWS CloudFormation sets the value of this property tocluster.Required: No
Type: String
Update requires: Replacement
Return Values
Ref
When the logical ID of this resource is provided to the Ref intrinsic
function, Ref returns the resource name.
For more information about using the Ref function, see Ref.
Example
The following example creates a placement group with a cluster placement
strategy.
JSON
"PlacementGroup" : { "Type" : "AWS::EC2::PlacementGroup", "Properties" : { "Strategy" : "cluster" } }
YAML
PlacementGroup: Type: AWS::EC2::PlacementGroup Properties: Strategy: cluster
