~/talk

Testing in Infrastructure as Code

Talkat 4Developers 2021 · 2021-05-24..05-27· [devops-and-delivery, testing]
links:none on file
slides:none on file

Argues that Terraform-based tests (using terratest) are integration-only, slow and flaky — single runs take ~50–90 seconds, require real cloud access and Go, so they fail under name collisions. Describes a Spock/Groovy mini framework that runs Terraform or aws cdk, supports localstack, and still runs integrations but lets CDK enable fast unit tests (≈100 ms) to validate naming logic. Predicts future IaC moves toward CDK/Pulumi-style general-purpose languages despite needing external binaries for some workflows.

AI-written summary · about

  1. 0:00Intro
  2. 1:32Introduction
  3. 1:49Writing tests
  4. 2:01About me
  5. 3:00Presentation
  6. 3:41Why automated tests
  7. 4:49Test pyramid
  8. 6:46Example problem
  9. 7:45Module implementation
  10. 8:20Terraform module
  11. 10:20TeraTest
  12. 13:23Golang
  13. 14:35Mini Framework
  14. 15:27Integration Test
  15. 21:06CDK vs SDK
  16. 29:14CDK vs Terraform
  17. 30:46Other infrastructure code tools
~/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.