Boilerplate code for how to manage Terraform for a project using Docker.
The following software is required:
- Docker Desktop (or on Linux you need Docker and Docker Compose)
- aws-vault or a way to set your AWS credentials as environment variables.
- Authenticate with the AWS using aws-vault
- Run
docker-compose run --rm tf initto initialise - Run
docker-compose run --rm tf COMMANDwhereCOMMANDis the Terraform command you wish to run