You can use a placement group to control the placement of instances relative to each other. After you create a placement group, you can launch instances in the placement group.
Limitation
You can create a maximum of 500 placement groups per Region.
To create a placement group
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the navigation pane, choose Placement Groups.
-
Choose Create placement group.
-
Specify a name for the group.
-
Choose the placement strategy for the group: Cluster, Spread, or Partition.
If you chose Spread, you must choose the spread level: Rack or Host.
If you chose Partition, you must enter the number of partitions for the group.
-
(Optional) To add a tag, choose Add new tag, and then enter a key and value.
-
Choose Create group.