This repo contains sample code for the talk How to test your infrastructure code: automated testing for Terraform, Docker, Packer, Kubernetes, and more by Yevgeniy Brikman, with updates for AWS CDK by Ben Whaley.
Note: This repo is for demonstration and learning purposes only and should NOT be used to run anything important. For production-ready versions of this code and many other types of infrastructure, check out Gruntwork.
This repo contains:
- modules: a simple Terraform module and AWS CDK app used throughout the talk to demonstrate automated testing practices.
- examples: examples of (a) how to use the Terraform module in
/modules
and (b) how to deploy Dockerized apps to Kubernetes. - test: automated tests for each of the examples in the
/examples
folder.
Dive into each of the folders above for more information!
Check out the README in each of the examples in the examples folder for instructions on how to run them manually.
Check out the README in the test folder for instructions on how to run the automated tests.
See LICENSE.txt.