[Bug] The ibm_resource_tag do not detach if tag_type is access or service #5566
Labels
service/Global Tagging
Issues related to Global Tagging
service/Resource Management
Issues related to Resource Manager or Resource controller Issues
service/VPC Infrastructure
Issues related to the VPC Infrastructure
Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
When we destroy the resources, we expect to destroy them without issues.
We expect that the attached tags on the created resources have been detached before the destroy.
Actual Behavior
We expect that the attached tags on the created resources have been detached before the destroy but this does not occur.
We get an error due to
The tag can not be deleted because there are resources attached
since the destroy on theibm_resource_tag
resource does not trigger a detach with the correct tag type.When the
ibm_is_ssh_key
resource has been destroyed, the system requires some seconds (usually 1-3 seconds) to propagate the disappearing of the resource, so since the destroy onibm_resource_access_tag
resource starts immediately, we get the error.We need to detach the tag before to delete the resource.
Steps to Reproduce
terraform plan
terraform apply
terraform destroy
Important Factoids
References
The text was updated successfully, but these errors were encountered: