6 lines
230 B
Docker
6 lines
230 B
Docker
|
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
|