Share a placement group
Placement group sharing allows you to influence the placement of interdependent instances that are owned by separate AWS accounts. You can share a placement group across multiple AWS accounts or within your AWS Organizations. You can launch instances in a shared placement group.
A placement group owner can share a placement group with:
-
Specific AWS accounts inside or outside of its AWS organization
-
An organizational unit inside its AWS organization
-
Its entire AWS organization
The AWS account from which you want to share a placement group must have the following permissions in the IAM policy.
-
ec2:PutResourcePolicy
-
ec2:DeleteResourcePolicy
Topics
Rules and limitations
The following rules and limitations apply when you share a placement group or when a placement group is shared with you.
-
To share a placement group, you must own it in your AWS account. You cannot share a placement group that has been shared with you.
-
When you share a partition or spread placement group, the placement group limits do not change. A shared partition placement group supports a maximum of seven partitions per Availability Zone, and a shared spread placement group supports a maximum of seven running instances per Availability Zone.
-
To share a placement group with your AWS organization or an organizational unit in your AWS organization, you must enable sharing with AWS Organizations. For more information, see Sharing your AWS resources.
-
You are responsible for managing the instances owned by you in a shared placement group.
-
You cannot view or modify instances and capacity reservations that are associated with a shared placement group but not owned by you.
Share across Availability Zones
To ensure that resources are distributed across the Availability Zones for a
Region, we independently map Availability Zones to names for each account. This
could lead to Availability Zone naming differences across accounts. For example, the
Availability Zone us-east-1a
for your AWS account might not have the
same location as us-east-1a
for another AWS account.
To identify the location of your Dedicated Hosts relative to your accounts, you
must use the Availability Zone ID (AZ ID). The Availability
Zone ID is a unique and consistent identifier for an Availability Zone across all
AWS accounts. For example, use1-az1
is an Availability Zone ID for
the us-east-1
Region and it is the same location in every AWS
account.
To view the Availability Zone IDs for the Availability Zones in your account:
-
Open the AWS RAM console at https://console.aws.amazon.com/ram
. -
The Availability Zone IDs for the current Region are displayed under Your AZ ID in the right panel.
Share a placement group
To share a placement group, you must add it to a resource share. A resource share is an AWS RAM resource that lets you share your resources across AWS accounts. A resource share specifies the resources to share, and the consumers with whom they are shared.
If you are part of an organization in AWS Organizations sharing within your organization is enabled, consumers in your organization are granted access to the shared placement group.
If the placement group is shared with an AWS account outside of your organization, the AWS account owner will receive an invitation to join the resource share. They can access the shared placement group after accepting the invitation.
You can share a placement group across AWS accounts using https://console.aws.amazon.com/ram
Identify a shared placement group
You can identify a placement group shared that is shared with you via
https://console.aws.amazon.com/ec2/
Launch an instance in a shared placement group
You must specify the Placement Group Group Id to launch an instance in a shared placement group.
You can use the Placement Group Name only if you are the owner of the placement group being shared. We recommend using the Placement Group Group Id to avoid potential placement group name collisions between AWS accounts.
You can find the Group Id of a placement group using the describe-placement-groups
command or in the
https://console.aws.amazon.com/ec2/
Use VPC peering to connect instances owned by separate AWS accounts and get the full latency benefits offered by shared cluster placement groups. For more information, see What is VPC peering?
Unshare a shared placement group
The placement group owner can unshare a shared placement group at any time.
When you unshare a shared placement group, the following changes will take effect.
-
The AWS accounts with which a placement group was shared will no longer be able to launch instances or reserve capacity.
-
If your instances were running in a shared placement group, they will be disassociated from the placement group but continue to run normally in your AWS account.
-
If you had capacity reservations in a shared placement group, they will be disassociated from the placement group but you will continue to have access to them in your AWS account.
You can unshare a shared placement group using one of the following methods.