This is a Cloud Native Buildpack for Terraform.
Build an image from any repo containing .tf
files:
$ pack build -b jkutner/terraform -D terraform my-terraform
Then run your Terraform commands, like apply
:
$ docker run -it my-terraform apply
You can load secrets by passing them on the command-line, or loading them into a volume mounted under /workspace
.
- You don't need to copy and paste this buildpack into every repo where you need Terraform
- You can configure your Terraform version, while using the same buildpack across many repos
- You can centralize any logic like validating the Terraform SHA256
- You can compose this buildpack with other buildpacks