File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929
3030.terraform /
3131* .tfstate
32+ * .tfstate. *
3233* .tfplan
3334plan.out
3435* .tfvars
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Terraform's core building blocks:
2727* ` output ` values Terraform prints after apply (and exposes to parent modules)
2828* ` module ` reusable Terraform package/folder you call from another config
2929
30- Examples
30+ Docker example
3131``` sh
3232# formatting/linting
3333terraform fmt -check
@@ -45,6 +45,8 @@ terraform plan
4545terraform plan -var=" docker_host=unix:///${HOME} /.rd/docker.sock"
4646# apply with "TF_VAR_<name>" convention
4747TF_VAR_docker_host=" unix:///${HOME} /.rd/docker.sock" terraform apply -auto-approve
48+ # cleanup
49+ terraform destroy -var=" docker_host=unix:///${HOME} /.rd/docker.sock"
4850
4951# verify state
5052terraform show
You can’t perform that action at this time.
0 commit comments