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