Open willholley opened 3 years ago
@willholley ,
As a workaround please add below block in your ibm_event_streams_topic
resource..
lifecycle {
ignore_changes = [
kafka_brokers_sasl,
]
}
We shall look into the issue..
Thanks
I don't think this workaround ever worked. With recent Terraform versions it explicitly fails with:
Warning: Redundant ignore_changes element
...
The attribute kafka_brokers_sasl is decided by the provider alone and
therefore there can be no configured value to compare with. Including this
attribute in ignore_changes has no effect. Remove the attribute from
ignore_changes to quiet this warning.
Community Note
Terraform CLI and Terraform IBM Provider Version
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
When refreshing the Terraform state for
ibm_event_streams_topic.topics["connect-status-es-dbcore"]
, nothing should change.Actual Behavior
When refreshing the Terraform state, the
ibm_event_streams_topic::kafka_brokers_sasl
field has changed. This appears to be due to the brokers being returned in a different order by the API.I expect the property should be represented as schema.TypeSet instead of schema.TypeList at https://github.com/IBM-Cloud/terraform-provider-ibm/blob/6176948f027e7c2ca170a438d6c3b12c6e5c555c/ibm/resource_ibm_event_streams_topic.go#L65.
Steps to Reproduce
Important Factoids
References
n/a