Overview of Pulumi Drift Detection and Remediation
Drift detection is a Pulumi Cloud feature that automates the identification and correction of discrepancies between the actual state of cloud resources and the desired state defined in Pulumi. Drift occurs when changes are made outside of Pulumi, such as manual updates via a cloud provider's console or CLI.
Key capabilities include:
- Detection Methods: Drift detection can be triggered via the Pulumi CLI, on-demand using 'click-to-deploy' actions in Pulumi Cloud, or via scheduled intervals.
- Reporting: Discrepancies are logged in the Drift tab of the Pulumi Cloud console, providing a history of runs and specific resource details.
- Notifications: Alerts can be sent via webhooks, Slack, Microsoft Teams, or email.
- Remediation: Auto-remediation can be configured to refresh the last known desired state and correct drift without manual intervention.
- CI/CD Integration: Drift detection can be integrated into custom pipelines using the
pulumi refreshcommand.