Listing Drift Status for a Stack

List drift status for each resource in a stack in Resource Manager. Drift status is available for completed drift detections.

For information about drift detection, see Detecting Drift in a Stack.

    1. Open the navigation menu and click Developer Services. Under Resource Manager, click Stacks.
    2. On the Stacks page, select the compartment that contains the stack that you want.
    3. Click the name of the stack that you want.
    4. On the Stack details page, choose one of the following.
      • To view the latest drift detection report: On the Stack information tab, click View drift detection report.
      • To view an older drift detection report: On the Work requests information tab, click the Actions menu (Actions Menu) for the related work request and then select View drift detection report.
      A panel lists the drift status of the specified resources defined by the stack. Resources are identified by resource names.
    5. To view details of drift status for a resource, click the down arrow.
      Actual and expected properties are listed.
    To generate a drift detection report (if the stack doesn't have one, or you want to create a new report): Go to More actions and select Run drift detection.
  • Use the oci resource-manager stack list-resource-drift-details command and required parameters to list drift status.

    oci resource-manager stack list-resource-drift-details --stack-id <stack_OCID>

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.

  • Use the ListStackResourceDriftDetails operation to list drift status for each resource in a stack, for a completed drift detection.

Making Resources Match

After listing drift status, if drift was detected, optionally make the stack's managed resources match the properties of the stack's Terraform configuration.

To make resources match the properties of the Terraform configuration, run an apply job.