DPZC-aws/zad_4_1_hetz/Dockerfile

6 lines
230 B
Docker
Raw Normal View History

2022-01-05 00:43:50 +01:00
FROM hashicorp/terraform:latest
COPY user_data user_data
COPY main.tf main.tf
ENTRYPOINT terraform init && terraform apply -var="token=${token}" -auto-approve && sleep 300 && terraform destroy -var="token=${token}" -auto-approve