The latest cloud infrastructure announcements, technical solutions, and enterprise cloud insights.

Drift Detection for Infrastructure Resources Using Resource Manager

Gaurav Jain
Product Lead, Developer Experience

We’re pleased to announce the General Availability of the Drift Detection feature in the Oracle Cloud Infrastructure Resource Manager service. Drift is the difference between the real-world state of your infrastructure and the stack’s last executed configuration.

Use Case

Infrastructure as code is one of the recommended ways to achieve automation. Resource Manager helps you in that regard by maintaining a snapshot of your infrastructure in the Terraform state files. However, the actual infrastructure might deviate from that captured snapshot. For example, a team member might manually add a production tag to a Compute instance on the Console, leaving the Resource Manager unaware of this change.

In this scenario, you can run drift detection reports to determine if provisioned resources have different states than those defined in the stack’s last executed configuration. You can also view a detailed drift status for each resource.

Getting Started

  1. In the main menu of the Oracle Cloud Console, go to Resource Manager and then click Stacks.

    A screenshot of the main menu in the Oracle Cloud Console, highlighting the Resource Manager and Stacks options.

  2. Click the name of the stack for which you want to run drift detection.

  3. From the More Actions menu, select Run Drift Detection.

    A screenshot that shows the details page for a stack, with the Run Drift Detection option highlighted in the More Actions menu.

  4. After the work request is completed, select More Actions again and click View Drift Detection Report.

    A screenshot that shows the details page for a stack, with the View Drift Detection Report option highlighted in the More Actions menu.

    Expected and actual properties are shown in the highlighted drift.

    A screenshot that shows the a drift detection report with a property difference highlighted.

  5. (Optional) If you want to converge your resources back to the configuration defined by the stack, select the Terraform Actions menu, and then click Apply.

    A screenshot that shows the details page for a stack, with the Apply option highlighted in the Terraform Actions menu.


If you’re new to Resource Manager, use the following resources to get started:

If you have any feedback or questions about Resource Manager, please contact us at oci_resource_manager_pub_us_grp@oracle.com.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha