Skip to main content
This example triggers a drift detection scan, polls until the scan job completes, and retrieves findings. Drift detection compares your current infrastructure configuration against the captured baseline and surfaces any changes.

Prerequisites

Step 1: Trigger the scan

Step 2: Poll for completion

Step 3: Get the findings summary

Output:

Step 4: List critical findings

Output:

Step 5: Get finding detail

Step 6: Resolve a finding

After fixing the issue in your cloud account, sync the provider and resolve the drift: