jkutner / terraform-buildpack

Installs Terraform CLI in a container image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Buildpack

CI Version

This is a Cloud Native Buildpack for Terraform.

Usage

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.

Why use this instead of the official Dockerfile?

  1. You don't need to copy and paste this buildpack into every repo where you need Terraform
  2. You can configure your Terraform version, while using the same buildpack across many repos
  3. You can centralize any logic like validating the Terraform SHA256
  4. You can compose this buildpack with other buildpacks

About

Installs Terraform CLI in a container image

License:MIT License


Languages

Language:Shell 95.9%Language:Makefile 4.1%