Following these steps.
delete me
and choose DeleteFollowing these steps.
terraform destroy
terraform destroy -auto-approve
to enforce terraform destroy. It means that you don’t need to enter yes
.yes
to agree to destroy the resources.terraform destroy
command is a convenient way to destroy all remote objects managed by a particular Terraform configuration.You can see that Terraform will delete the resources for us. We don’t need to go on the AWS Management Console and delete each resource.
With Terraform, you can clearly see several benefits, including:
Automation: Terraform automates the process of provisioning and managing infrastructure, reducing the risk of human error and increasing efficiency.
Efficiency: Terraform reduces the time and effort required to manage infrastructure, allowing you to focus on higher-level tasks and increasing overall efficiency.
Cost-Effective: Terraform helps reduce costs by allowing you to manage infrastructure resources more efficiently, reducing waste, and optimizing resource utilization.
You can view some resources Terraform has destroyed by using CloudTrail.
Access the CloudTrail interface.