Changing the Capacity Reservation for an Instance
You can move instances into or out of capacity reservations without having to rebuild your instances. Capacity reservations let you reserve instances in advance so that the capacity is available for your workloads when you need it.
For permissions, see Required IAM Policy for Working with Instances.
Before You Begin
To move an instance into a capacity reservation, you must have an existing capacity reservation. For steps to create capacity reservations, see Capacity Reservations.
Using the Console
You can use the Console to move instance into or out of capacity reservations.
To move instances into a capacity reservation
- Open the navigation menu and click Compute. Under Compute, click Instances.
- Click the instance that you're interested in.
- Click More Actions, and then click Edit.
- Click Show advanced options, and then select the Placement tab.
- Select the Apply a capacity reservation check box.
- For Capacity reservation, select the capacity reservation that you want to move the instance into.
- Click Save changes.
To move instances out of a capacity reservation
- Open the navigation menu and click Compute. Under Compute, click Instances.
- Click the instance that you're interested in.
- Click More Actions, and then click Edit.
- Click Show advanced options, and then select the Placement tab.
- Clear the Apply a capacity reservation check box.
- Click Save changes.
Using the API
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.
Use this API operation to move instances into and out of capacity reservations: