1030 Detect Terraform Drift¶
10 Minutes introductory
Detect when cloud resources are changed outside of Digital Rebar
Business ROI: Improved operational control and consistency of infrastructure
Prerequisites¶
Additional Labs:
Additional Checklist Items:
- Access to your cloud provider console
Concepts¶
- clusters
- resource brokers
Summary¶
Force drift into the lab1020 Cluster¶
- Verify that you can find the associated instances in your cloud provider console
- Make sure that the cluster has completed provisioning and entered Work Order mode
- Remove some (not all) of the provisioned resources using your cloud provider's CLI or UX
Detect drift from the lab1020 cluster¶
- Select and apply the
cloud-cluster-drift-detection
blueprint - Review the Alerts to see the WARNING created by Digital Rebar detecting the drift
Create a drift detection trigger¶
- Create a new trigger named lab1030
- Select the
cron-trigger
Trigger Provider The options will change when you select the provider - Configure the new trigger
Select the
cloud-cluster-drift-detection
blueprint.Select `clusters` as the filter to regularly scan for drift. Set the `cron-trigger/time-string` to your preferred frequency. * Selecting Hour: `1` will create a daily scan at 1 am. * Selecting Minute: `1` will create an hourly scan at :01 each hour. Save the Trigger.
- Update the
All Filter Machines
value totrue
This ensures that the trigger runs on all active clusters.
- Update the