Skip to content

interrobangc/docker-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Terraform container with support for EKS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published