paws.compute (version 0.1.0)

ec2_create_placement_group: Creates a placement group in which to launch instances

Description

Creates a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.

Usage

ec2_create_placement_group(DryRun, GroupName, Strategy, PartitionCount)

Arguments

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

GroupName

A name for the placement group. Must be unique within the scope of your account for the Region.

Constraints: Up to 255 ASCII characters

Strategy

The placement strategy.

PartitionCount

The number of partitions. Valid only when Strategy is set to partition.

Request syntax

svc$create_placement_group(
  DryRun = TRUE|FALSE,
  GroupName = "string",
  Strategy = "cluster"|"spread"|"partition",
  PartitionCount = 123
)

Details

A cluster placement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. A spread placement group places instances on distinct hardware. A partition placement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.

For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

Examples

Run this code
# NOT RUN {
# This example creates a placement group with the specified name.
# }
# NOT RUN {
svc$create_placement_group(
  GroupName = "my-cluster",
  Strategy = "cluster"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab