Automated IaC testing with Terraform, AWS and Python

Published: 25 May 2023
on channel: HashiCorp
4,198
72

This talk will demonstrate how to engineer high-quality, awesome-to-use, batteries-included Terraform modules.

It is aimed at infrastructure engineers who are of intermediate level with infrastructure as code and Terraform, and are wondering how to test modules and improve their quality.

We will discuss relevance - why and how we can test infrastructure, and what we can learn from application software testing.

Our automated tests can include: pre-commit and standardisation tests, Terraform example tests, basic infrastructure tests, functional tests, compatibility tests.

We will demonstrate some tests using:
1 - pre-commit: terraform lint, terraform docs, tfsec, checkov
2 - Python and Terraform, specifically pytest and tftest.

We will show how these can be run locally against Terraform cloud, and remotely in a CI pipeline on Github.

We will demonstrate how testing can ensure we will always have working code examples, and that our module/s are easy to use, even when they need to be fixed and improved.

Speaker: Bjorn Olsen

Subscribe to our YouTube Channel → https://www.youtube.com/c/HashiCorp?s...

For hands-on interactive labs, visit HashiCorp Developer → https://developer.hashicorp.com/

HashiCorp provides infrastructure automation software for multi-cloud environments, enabling enterprises to unlock a common cloud operating model to provision, secure, connect, and run any application on any infrastructure. HashiCorp open source tools Vagrant, Packer, Terraform, Vault, Consul, Nomad, Boundary, and Waypoint allow organizations to deliver applications faster by helping enterprises transition from manual processes and ITIL practices to self-service automation and DevOps practices.

For more information → https://hashicorp.com
Twitter →   / hashicorp  
LinkedIn →   / hashicorp  
Facebook →   / hashicorp  


Watch video Automated IaC testing with Terraform, AWS and Python online, duration hours minute second in high quality that is uploaded to the channel HashiCorp 25 May 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 4,198 times and liked it 72 visitors.