~/talk

Untangling Terraform Through Refactoring

Talkat HashiConf 2016 · 2016-09-06..09-08· [infrastructure-as-code]
slides:none on file

Shows how to refactor Terraform configs safely by adding tests first and changing one piece at a time: use Test Kitchen with kitchen-terraform to provision AWS instances, write inspec tests (a ping test) that initially fail, make Terraform create the needed security rule, rerun kitchen verify until tests pass, then replace two security groups with one security group and finally extract the security group into a reusable module with an output consumed by the main config so the change works with minimal risk.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Why refactor Terraform
  3. 3:33Original Terraform setup
  4. 9:11Testing Terraform with tools
  5. 12:22Building minimal test infrastructure
  6. 17:39Writing first security tests
  7. 21:08Condensing security groups
  8. 26:06Refactoring into modules
  9. 32:48Summary and key takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.