- Build docker image:
docker build -t xxx .
- run it interactively and mount the local folder:
docker run -it -v /path_to_code:/tf xxx
- (This and the followings steps would be inside the container) Perform setup:
cd /tf
az login
terraform init
- Run terraform to create resources:
terraform apply -auto-approve
- Run terraform to clean up:
terraform destroy -auto-approve