how to use destroy to delete a rest api resource created using terraform

181 views
Skip to first unread message

HEMANT AGRAWAL

unread,
May 16, 2018, 3:07:06 AM5/16/18
to Terraform
Hi All,
I am new to terraform and exploring its possibilities by using it for API calls.

I am able to do the POST and PUT operation but i am not getting how DELETE works.
I searched terraform site and found that terraform destroy is the command but that doesn't seem working for me.
Could you please help me by giving an example how can i use it ?

Here is my tf file:


resource "company_lun" "my-lun" {
  host = "https://<ip>:<port>"
  user_name = "<username>"
  password = "<password>"
  key = "<rsource-key>"
}


Please let me know for any clarification.


Clint Shryock

unread,
May 16, 2018, 1:50:05 PM5/16/18
to terrafo...@googlegroups.com
Hey there –

I don't recognize that resource, is this a custom provider you're using? 

If you haven't already, please checkout our "What is Terraform?" and "Getting Started" guides


Cheers,
Clint

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/4ba16821-f84f-4a52-be3c-01bd7c4bdf80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages