CreatePlacementGroup
In this article:
CreatePlacementGroup#
Description#
Creates a placement group that you launch cluster instances into.
Request Parameters#
Required parameters#
GroupName — The name of the placement group.
Required: Yes
Type: String
Valid values: ASCII, except
\<>:/
Length constraints: from 1 to 255 symbols
Strategy — The placement strategy. Supported strategy: “Distribution across computational nodes”.
Required: Yes
Type: String
Valid values:
spread
Optional parameters#
TagSpecification.N — The tags assigned to the resource when it is created.
Type: List of TagSpecification objects
Required: No
Response Elements#
requestId — The request ID
Type: Boolean
return —
True
is returned if the request succeeds, and an error otherwiseType: String
Examples#
c2-ec2 CreatePlacementGroup GroupName <name> Strategy spread
c2-ec2 CreatePlacementGroup GroupName <name> Strategy spread TagSpecification.0.ResourceType placement-group \
TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"