Moving Compute Resources to a Different Compartment
You can move Compute resources such as instances, instance pools, and custom images from one compartment to another.
When you move a Compute resource to a new compartment, associated resources such as boot volumes and VNICs are not moved.
After you move the resource to the new compartment, inherent policies apply immediately and affect access to the resource through the Console. For more information, see Managing Compartments.
Required IAM Policy
To use Oracle Cloud Infrastructure, an administrator must be a member of a group granted security access in a policy by a tenancy administrator. This access is required whether you're using the Console or the REST API with an SDK, CLI, or other tool. If you get a message that you don't have permission or are unauthorized, verify with the tenancy administrator what type of access you have and which compartment your access works in.
For administrators: The following policies allow users to move Compute resources to a different compartment:
Allow group ComputeCompartmentMovers to manage instance-family in tenancy
Allow group ComputeCompartmentMovers to manage compute-management-family in tenancy
Allow group ComputeCompartmentMovers to manage auto-scaling-configurations in tenancy
Allow group ComputeCompartmentMovers to manage dedicated-vm-hosts in tenancy
If you're new to policies, see Managing Identity Domains and Common Policies.
Security Zones
Security Zones ensure that cloud resources comply with Oracle security principles. If any operation on a resource in a security zone compartment violates a policy for that security zone, then the operation is denied.
The following security zone policies affect your ability to move Compute resources from one compartment to another:
- You can't move a compute instance from a security zone to a compartment that is not in the same security zone.
- You can't move a compute instance to a security zone from a compartment that is not in the same security zone.
Moving Compute Resource Links
The following Compute resources support move operations.
- Moving an Instance
- Moving a Dedicated Virtual Machine Host to a Different Compartment
- Moving an Instance Configuration
- Moving an Instance Pool to a Different Compartment
- Moving a Cluster Network
- Moving a Compute Cluster to a Different Compartment
- Moving a Capacity Reservation
- Moving a Custom Image to a Different Compartment
Using the Console
- Open the navigation menu and select Compute. Under Compute, select Autoscaling Configurations.
- In the List Scope section, select a compartment.
- Click the autoscaling configuration that you're interested in.
- Click Move resource.
- Choose the destination compartment from the list.
- Click Move Resource.
Using the API
Change an autoscaling configuration's compartment with the following API call: ChangeAutoScalingConfigurationCompartment