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.
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