-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform destroy doesn't delete every resource #186
Comments
From the output you shared, the error is |
Hello @davidji99 , This is the error that I get when I try to run destroy. Potential solution: Add the ability to list API keys and then delete them as resources. Listing API keys is currently an RFE. Something like this for deleting the key as a resource and then this would let us delete the environment. You can use this delete API key API call.
|
@squalliram There is no API support for listing API keys. (I'm not sure what 'RFE' stands for). As for your suggestion below, it would not work because this code you want to create a
There's not much support I can provide for existing keys since without API Now if you created new API keys using the |
Hello @davidji99 , RFE (Request for Enhancement) is something I'll take care of on the Split side. There is currently no API for listing API keys as you said. I'll create a request for our team to add support for that. Once we have a way to fetch API keys, you should be able to get the API keys linked to an environment and then the destroy should proceed successfully. Is that fair to say? If yes, for now we don't have an action on this. Yes, and if we created API keys using the resource you mentioned, that we could use Thanks. |
Hi @squalliram,
My apologies. The current
Terraform will delete the api key first before deleting the environment. There's no need to use A |
Hi there,
Terraform Version
v.1.7.3
HerokuX Provider Version
Affected Resource(s)
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
run-UjbubQYXUZSZ1Dum-plan-log.txt
Expected Behavior
Destroy should have deleted all resources that were created with the apply
Actual Behavior
Destroy was unable to delete resources relating to environment and then eventually the workspace as all the traffic types were still there and also all the feature flags and segments were still there. In order for an environment to be deleted, first all flags, segments, traffic types need to be deleted. Once all environments are deleted, then the workspace can be deleted.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform init
terraform plan
terraform apply
terraform destroy
The text was updated successfully, but these errors were encountered: