~/talk

InfraCoding with Terraform: Writing Tests for Infrastructure-as-Code

Talkat TestCon Europe 2019 · 2019-10-15..10-17· [devops-and-delivery, testing]
slides:none on file

Claim: infrastructure-as-code without tests equals self-sabotage. Concrete tools and outcomes: quick unit tests run locally with terraform validate/TFLint catch syntax and edge-variable errors; longer state tests create and destroy real infra using Terratest (example: a t1 micro full apply and destroy in ~1 minute) and provider acceptance suites (Azure full suite ≈10 hours, AKS ≈15–20 minutes); integration via kitchen-terraform + InSpec verifies provisioning over SSH; policy-as-code with Sentinel and Terraform Cloud cost estimates blocks a proposed c5 metal that raises monthly cost to ~$4k against a $1k policy.

AI-written summary · about

  1. 0:00Start
  2. 7:24The only "real" Terraform unit test..
  3. 9:44clarity example
  4. 10:55terraform-compliance example
  5. 11:17terraform validate
  6. 18:27Terraform Testing SDK example
  7. 18:57Full Suite example for Azure
  8. 20:46terratest example
  9. 25:03kitchen-terraform example
  10. 27:12HashiCorp Sentinel
  11. 27:44Sentinel example for Terraform
~/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.