Which command shoul...
 
Notifications
Clear all

Which command should you use to show all of the resources that will be deleted?

1 Posts
1 Users
0 Likes
400 Views
(@hevesywilber)
Noble Member
Joined: 2 years ago
Posts: 682
Topic starter  

You have used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your Terraform configuration. To be safe, you would like to first see all the infrastructure that will be deleted by Terraform.

Which command should you use to show all of the resources that will be deleted? (Choose two.)

  • A . Run terraform plan -destroy.
  • B . This is not possible. You can only show resources that will be created.
  • C . Run terraform state rm *.
  • D . Run terraform destroy and it will first output all the resources that will be deleted before
    prompting for
    approval.

Show Answer Hide Answer

Suggested Answer: C,D

Explanation:

Reference: https://www.terraform.io/docs/cli/commands/state/rm.html

   
Quote

Latest HashiCorp TA-002-P Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: