benqian / infrastructure-as-code-testing-talk

Sample code for the talk "How to test your infrastructure code: automated testing for Terraform, Docker, Packer, Kubernetes, and more" by Yevgeniy Brikman

Home Page:https://gruntwork.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infrastructure as code testing talk

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.

Overview of the repo

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!

Running the examples manually

Check out the README in each of the examples in the examples folder for instructions on how to run them manually.

Running the automated tests

Check out the README in the test folder for instructions on how to run the automated tests.

License

See LICENSE.txt.

About

Sample code for the talk "How to test your infrastructure code: automated testing for Terraform, Docker, Packer, Kubernetes, and more" by Yevgeniy Brikman

https://gruntwork.io/

License:MIT License


Languages

Language:Go 58.0%Language:HCL 37.9%Language:TypeScript 3.3%Language:JavaScript 0.8%