Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 474 Bytes

File metadata and controls

30 lines (21 loc) · 474 Bytes

Moby Terraform

Terraform CLI in a Docker image.

Usage

Docker Command

docker run --rm -v ~/.aws:/home/terraform/.aws -v $(pwd):/opt/app altostack/terraform --version

Docker Compose

terraform:
  image: altostack/terraform
  env_file: .env
  volumes:
    - ~/.aws:/home/terraform/.aws
    - .:/opt/app:rw

Build

Update the TERRAFORM_VERSION in both Makefile and DockerFile. Then run:

make build