~/talk

Terraform Cloud Learn Lab: Validate Infrastructure, Detect Drift & Enforce OPA Policies

Talkat HashiConf Global 2022 · 2022-10-04..10-06· [infrastructure-as-code, security]
links:none on file
links:none on file
slides:none on file

Uses Terraform Cloud + Terraform 1.2 features and OPA to enforce config and catch runtime drift: a pre and post conditions example rejects a Bastion instance with eight CPU cores via an AWS data source during plan, OPA policy sets (VCS-backed) block overly permissive security groups and no‑Friday deploys with advisory or mandatory enforcement (optional override), and business‑tier health assessments run periodic drift detection to flag manual console changes.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:23Why validate infrastructure automatically
  3. 8:06Pre and post conditions in Terraform
  4. 17:34Policy as code with OPA
  5. 27:41Fixing policy violations
  6. 33:51Health assessments and drift detection
  7. 40:31Demonstrating drift detection
  8. 42:40Auto-remediation and notifications
  9. 45:51Q&A and wrap-up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.