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.

Response Elements#

  • requestId — The request ID

    • Type: Boolean

  • returnTrue is returned if the request succeeds, and an error otherwise

    • Type: 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"