AcademyWorld Builder: Infrastructure as CodeMaterialization (Applying)

Module 2: Controlled Demolition

A true Architect knows when to build and when to burn. In DevOps, we don't leave "trash" lying around. If you don't need a server anymore, you delete it to save money and stay secure.

Tactical Intel: Why destroy?

One of the biggest mistakes in the cloud is leaving resources running that you've forgotten about. This leads to massive bills. Terraform makes cleanup as easy as creation.

The Directive

You need to wipe all traces of your mission from the cloud.

Mission: Run the destruction command. Run: terraform destroy -auto-approve

booting...

Tactical Insight: The - Sign

If you were to run terraform plan -destroy, you would see a red - sign. This is the opposite of the green + sign we saw during creation. It means "This resource is being removed."

Mission Control

Destroy the Infrastructure

Expected Command

terraform destroy -auto-approve