Docker Image with tfenv (Multiple versions of Terraform) + Packer + AWS CLI
- Docker (started) and docker-compose (just install Docker for Desktop if you are on laptop)
- AWS User + credentials
- Clone repo
git clone https://github.com/raymar13/devops_docker.git
- Run
cd devops_docker
- Duplicate the .env.example , rename it to .env and replace dummy values with yours
- To build the image run :
docker compose -f /docker_build/docker-compose.yml build
- To launch the container run :
docker-compose up -d
- To ssh into the container run :
docker exec -it terraform_docker bash
- Create modules inside /modules
- Call modules or create plain terraform projects inside /environments