Terraform CLI in a Docker image.
docker run --rm -v ~/.aws:/home/terraform/.aws -v $(pwd):/opt/app altostack/terraform --version
terraform:
image: altostack/terraform
env_file: .env
volumes:
- ~/.aws:/home/terraform/.aws
- .:/opt/app:rw
Update the TERRAFORM_VERSION
in both Makefile
and DockerFile
. Then run:
make build