Skip to content

Modular terraform modules in use by Ensono Stacks and available for public

License

Notifications You must be signed in to change notification settings

Ensono/stacks-terraform

Repository files navigation

Infrastructure libs

Holds all the libs used by stacks for insfrastructure bootstrapping and definitions.

In general it's best to avoid writing bootstrapping modules and prefer Docs sections with clearly described pre-requisites.

Terraform

Each module should contain an examples folder with at least 1 example on how to use + plus any extra creds step description. Especially important for Azure modules

Docs

Docs should be descriptive as to what it does and contain an Inputs, Outputs and Providers section. The recommended way to do that is to use this package

e.g.: terraform-docs markdown table path/to/my/module

Local testing

run and test any changes locally

docker run -v $(pwd):/usr/data --rm -it amidostacks/ci-tf:0.0.4 /bin/bash