Terraform Basics - Update and Destroy with Docker
Terraform - Update Infrastructure
Using the configuration from the previous section, you can make a change to your configuration.
For example change the port specified from this:
external = 8000
to this:
external = 8080
You can who the plan and then apply like this:
terraform plan
terraform apply
~ | indicates updating in place |
-/+ | indicates destroying and replacing |
Terraform - Destroy Infrastructure
You can destroy all infrastructure defined in your project with the following command.
terraform destroy
It will prompt you to confirm.