~/talk

Validate infrastructure, detect drift, and enforce policies with HCP Terraform

Talkat HashiConf 2024 · 2024-10-14..10-16· [infrastructure-as-code, security]
links:none on file
slides:none on file

Uses HCP Terraform to run plan-time checks, enforce preconditions in a module (data source reads the AWS instance type and a lifecycle precondition requires <= 2 cores, blocking a 2xlarge with ~8 cores), and apply Sentinel policies from a VCS-backed policy set (advisory day-of-week rule set to Wednesday plus a soft-mandatory block for 0.0.0.0/0 Ingress). Health assessments run daily (or manually), detect drift when a security group is edited, show a plan-like delta, and can trigger an on-platform apply to remediate.

AI-written summary · about

  1. 0:00Introduction to validation
  2. 7:09Setting up the lab
  3. 11:42Preconditions for modules
  4. 18:11Policy as code with Sentinel
  5. 23:16Configuring policy sets
  6. 32:23Policy enforcement demo
  7. 33:27Detecting infrastructure drift
  8. 38:07Manual changes and drift
  9. 41:24Summary and Q&A
~/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.