Sign inSign up

interrobangc/terraform

By interrobangc

Updated over 2 years ago

Terraform with support for EKS and the addition of terraform-landscape

Image
0

1.2K

interrobangc/terraform repository overview

interrobangc/terraform

This docker image adds some additional tools to the official terraform image.

It adds kubectl and aws-iam-authenticator to enable support for EKS.

It adds terraform-landscape which cleans up plan output for human consumption.

It removes the docker-entrypoint to simplify more advanced usage.

Usage

Get terraform version:

docker run -it --rm interrobangc/terraform terraform version

Run terraform init:

docker run -it --rm -e AWS_DEFAULT_REGION -e AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID -v $(pwd):/app -w /app interrobangc/terraform terraform init

Run terraform plan:

docker run -it --rm -e AWS_DEFAULT_REGION -e AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID -v $(pwd):/app -w /app interrobangc/terraform bash -c "terraform plan | landscape"

Run terraform init:

docker run -it --rm -e AWS_DEFAULT_REGION -e AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID -v $(pwd):/app -w /app interrobangc/terraform terraform apply

Tag summary

Content type

Image

Digest

Size

130.1 MB

Last updated

over 7 years ago

docker pull interrobangc/terraform