Bringing Software Development Practices to your Infrastructure
summary
Demonstrates applying test driven development to infrastructure by writing unit tests with Jest against a CDK app and real integration tests using inspec; builds a private S3 bucket with server‑side encryption and an RDS PostgreSQL 12.7 instance (t2.small) plus EC2 and security group wiring, fails tests first, then implements just enough code to pass. Shows running tests locally and in CI/CD, asserting resource counts and configs, and using inspect to detect drift and enforce policy.
AI-written summary · about
chapters (18)
- 0:00Intro
- 1:17What is Infrastructure
- 1:49What can go wrong
- 3:14Agenda
- 3:44Managing Complexity
- 4:50Testing Pyramid
- 7:13Benefits of Test Driven Development
- 9:30Test Driven Development Flow
- 10:17Unit Tests
- 13:19Unit Testing
- 16:34Just Unit Test
- 20:40Integration Tests
- 21:29Chef Spec
- 23:27Demonstration
- 24:22Unit Test
- 25:41Inspect Test
- 30:31Drift
- 34:22Outro
