You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to provision in a new cluster and we have deleted the service ID and when we ran terraform destroy it was complains about service policy couldn't found and no way to delete them. IBM cloud UI or CLI because the Service ID no longer exists (CLI params require the ServiceID, and UI does not show individual policies.)
Below is the conversation
Guillermo Cabrera:
The problem I see here is in our IBM Terraform provider. The deletion of the policies did not occur via Terraform but was done automatically as a result of that ServiceId that was deleted. As such, when you did your terraform destroy the IBM Terraform provider is also not aware of soft deleted policies.
We are trying to provision in a new cluster and we have deleted the service ID and when we ran terraform destroy it was complains about service policy couldn't found and no way to delete them. IBM cloud UI or CLI because the Service ID no longer exists (CLI params require the ServiceID, and UI does not show individual policies.)
Below is the conversation
Guillermo Cabrera:
The problem I see here is in our IBM Terraform provider. The deletion of the policies did not occur via Terraform but was done automatically as a result of that ServiceId that was deleted. As such, when you did your terraform destroy the IBM Terraform provider is also not aware of soft deleted policies.
terraform-provider-ibm/ibm/resource_ibm_iam_service_policy.go
Line 422 in adf8050
ibm/resource_ibm_iam_service_policy.go:422
return fmt.Errorf("Error deleting service policy: %s", err)
Terraform destroy actually does a soft delete and I believe it should remove the resource from the terraform state file.
The text was updated successfully, but these errors were encountered: