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
If I create eventhub namespace without kafka_enable and run terraform repeatedly it doesn't recreate the resource.
Actual Behavior
Microsoft made Kafka API compulsory at new eventhub namespaces of Standard tier. Second and any consecusive execution of the script causes the eventhub namespace to be removed and created again.
The fix for this has been merged in #4743 which will be shipping as a part of v1.37 - since the fix for this has been merged I'm going to close this issue for the moment - however as I've assigned this to the 1.37 milestone @hashibot will comment here when this has been released.
In the interim it should be possible to work around this using an ignore_changes element within the lifecycle block to ignore the changes to this field, like so:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Nov 30, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_eventhub_namespace
Terraform Configuration Files
Debug Output
Expected Behavior
If I create eventhub namespace without
kafka_enable
and run terraform repeatedly it doesn't recreate the resource.Actual Behavior
Microsoft made Kafka API compulsory at new eventhub namespaces of Standard tier. Second and any consecusive execution of the script causes the eventhub namespace to be removed and created again.
Steps to Reproduce
terraform apply
terraform apply
See extensive project with detailed description at https://github.com/cima/eventhub-terraform-bug
Important facts
The SKU must be Standard.
References
A complete example project with outputs can be found at https://github.com/cima/eventhub-terraform-bug
#0000
The text was updated successfully, but these errors were encountered: