Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Stop sharing a Capacity Reservation
The Capacity Reservation owner can stop sharing a Capacity Reservation at any time. The following rules
apply:
-
Instances owned by consumers that were running in the shared capacity at
the time sharing stops continue to run normally outside of the reserved
capacity, and the capacity is restored to the Capacity Reservation subject to Amazon EC2 capacity
availability.
-
Consumers with whom the Capacity Reservation was shared can no longer launch new instances
into the reserved capacity.
To stop sharing a Capacity Reservation that you own, you must remove it from the resource share.
- Console
-
To stop sharing a Capacity Reservation that you own using the Amazon EC2 console
-
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/.
-
In the navigation pane, choose
Capacity Reservations.
-
Select the Capacity Reservation and choose the Sharing
tab.
-
The Sharing tab lists the resource shares
to which the Capacity Reservation has been added. Select the resource share from
which to remove the Capacity Reservation and choose Remove from
resource share.
To stop sharing a Capacity Reservation that you own using the Amazon RAM console
See Updating a Resource Share in the Amazon RAM User Guide.
- Amazon CLI
-
To stop sharing a Capacity Reservation that you own
Use the disassociate-resource-share command.
aws ram disassociate-resource-share \
--resource-share-arn arn:aws-cn:ram:us-east-2
:123456789012
:resource-share/7ab63972-b505-7e2a-420d-6f5d3EXAMPLE
\
--resource-arns arn:aws-cn:ec2:us-east-2
:123456789012
:capacity-reservation/cr-1234abcd56EXAMPLE
- PowerShell
-
To stop sharing a Capacity Reservation that you own
Use the Disconnect-RAMResourceShare cmdlet.
Disconnect-RAMResourceShare `
-ResourceShareArn "arn:aws-cn:ram:us-east-2
:123456789012
:resource-share/7ab63972-b505-7e2a-420d-6f5d3EXAMPLE
" `
-ResourceArn "arn:aws-cn:ec2:us-east-2
:123456789012
:capacity-reservation/cr-1234abcd56EXAMPLE
"