Destroying the Resources

Destroy all the resources that we've created in AWS.

Destroying the resources

We’re almost finished with the quick exploration of Terraform using EKS as an example. We saw how to add and change resources, and the only thing missing is to learn how to destroy them.

If we’d like to delete some of the resources, all we have to do is remove their definitions and execute terraform apply. However, in some cases, we might want to destroy everything. There’s a command for that as well.

Get hands-on with 1200+ tech skills courses.