Not possible to manage KMS key and Event Streams instance using it in same terraform state #5472
Labels
service/IAM
Issues related to IAM
service/Key Management Services
Issues related to Key Management Release
service/Resource Management
Issues related to Resource Manager or Resource controller Issues
Due to the way the Event Streams service handles de-registration of an instance from a KMS root key, it make it impossible to manage the KMS key and the Event Streams instance in the same terraform state.
Here is how the Event Streams service handles de-registration:
Due to this it makes it impossible to manage the key, auth policy and the instance in the same terraform.
In the
Terraform Configuration Files
section below, I have included a code snippet that can be used to verify this. If you do terraform apply and then terraform destroy on it, the destroy failed with this:Community Note
Terraform CLI and Terraform IBM Provider Version
tf 1.6.6
ibm provider 1.66.0
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
The use case is a standard pattern used by many other services - so I expect it to also work for Event Streams
Actual Behavior
Cannot manage KMS key and Event Streams in same terraform
Steps to Reproduce
terraform apply
terraform destroy
Important Factoids
References
The text was updated successfully, but these errors were encountered: