Get Involved
Query: 6.2 Ensure no resources are created in the root compartment
Description
When you create a cloud resource such as an instance, block volume, or cloud network, you must specify to which compartment you want the resource to belong. Placing resources in the root compartment makes it difficult to organize and isolate those resources.
Query
Tables used in this query:
- oci_core_boot_volume
- oci_core_instance
- oci_core_load_balancer
- oci_core_vcn
- oci_core_volume
- oci_core_volume_group
- oci_database_autonomous_database
- oci_database_db_system
- oci_file_storage_file_system
- oci_identity_tenancy
- oci_objectstorage_bucket
Controls using this query: