This issue was originally opened by @rb1whitney as hashicorp/terraform#11805. It was migrated here as part of the provider split. The original body of the issue is below.
I am requesting that we add the missing delete function for chef_environment. Per the code in: https://github.com/hashicorp/terraform/blob/master/vendor/github.com/go-chef/chef/environment.go, there is mention of a delete function. Is it possible to have this missing feature implemented? When you provision a chef_environment with chef nodes, the chef environment sticks around and causes issues if the environment is re-created. I was able to monkey patch this issue locally by just copying the logic from client.go and renaming client to environment (to hit the right rest api for chef) and would like to see it fixed in future versions if possible.
Terraform Version
0.8.6
Affected Resource(s)
Please list the resources as a list, for example:
chef_environment
Expected Behavior
Chef Environment should be able to delete resource when calling terraform destroy
Actual Behavior
Nothing happens since chef_environment is missing a delete function
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
This issue was originally opened by @rb1whitney as hashicorp/terraform#11805. It was migrated here as part of the provider split. The original body of the issue is below.
I am requesting that we add the missing delete function for chef_environment. Per the code in: https://github.com/hashicorp/terraform/blob/master/vendor/github.com/go-chef/chef/environment.go, there is mention of a delete function. Is it possible to have this missing feature implemented? When you provision a chef_environment with chef nodes, the chef environment sticks around and causes issues if the environment is re-created. I was able to monkey patch this issue locally by just copying the logic from client.go and renaming client to environment (to hit the right rest api for chef) and would like to see it fixed in future versions if possible.
Terraform Version
0.8.6
Affected Resource(s)
Please list the resources as a list, for example:
Expected Behavior
Chef Environment should be able to delete resource when calling terraform destroy
Actual Behavior
Nothing happens since chef_environment is missing a delete function
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform destroy
References
None