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.
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.