Skip to content

elmundio87/terraform_validate_bdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform standards packs

Building on top of Terraform Validate, I am aiming to build some standard "packs" of tests that can be used across multiple cloud providers.

Using the Lettuce library, I am creating a set of BDD-style "features" in plain English that help enforce user-driven standards inside a Terraform-driven infrastructure.

Examples include;

  • Variable-driven properties (avoiding hardcoding)
  • Enforcing encryption on compatible resources
  • Ensuring that taggable resources have the correct list of metadata tags

steps.py

I use a global steps.py file that is compatible with multiple cloud providers.

If you want to add your own steps in a custom feature, refer to the Lettuce documentation

Usage

  1. Set up a python virtual environment and activate it
  2. Run ./test.sh

About

Experiment to write terraform policy definitions in BDD style

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published