| Did this page help you? Yes No Tell us about it... |
Creates a placement group that you launch cluster instances into. You must give the group a name unique within the scope of your account. For more information about placement groups and cluster instances, go to Using Cluster Instances in the Amazon Elastic Compute Cloud User Guide.
The short version of this command is ec2addpgrp.
ec2-create-placement-group
placement-group -s strategy
| Name | Description | Required |
|---|---|---|
|
|
A name for the placement group. Type: String Default: None Example: XYZ-cluster |
Yes |
|
|
The placement strategy. Type: String Valid Values: Default: cluster Example: -s cluster |
No |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
PLACEMENTGROUP identifier
Placement group name
Placement group strategy
This example creates the XYZ-cluster group.
PROMPT> ec2-create-placement-group XYZ-cluster -s cluster
PLACEMENTGROUP XYZ-cluster cluster