-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provider wants to replace kafka_acl
that do not need to be replaced
#285
Comments
I am running into the a similar issue with the following two ACLs: resource "kafka_acl" "acl_1" {
acl_host = "*"
acl_operation = "Read"
acl_permission_type = "Allow"
acl_principal = "User:user_name"
id = "User:user_name|*|Read|Allow|Topic|topic_name|Literal"
resource_name = "topic_name"
resource_pattern_type_filter = "Prefixed"
resource_type = "Topic"
}
resource "kafka_acl" "acl_2" {
acl_host = "*"
acl_operation = "Read"
acl_permission_type = "Allow"
acl_principal = "User:user_name"
id = "User:user_name|*|Read|Allow|Group|group_name|Prefixed"
resource_name = "group_name"
resource_pattern_type_filter = "Prefixed"
resource_type = "Group"
} Here # kafka_acl.acl_1 must be replaced
-/+ resource "kafka_acl" "acl_1" {
~ id = "User:user_name|*|Read|Allow|Topic|topic_name|Literal" -> (known after apply)
~ resource_pattern_type_filter = "Prefixed" -> "Literal" # forces replacement
# (6 unchanged attributes hidden)
} It appears the Kafka provider is mixing up |
Fixed for me in master after the merge of #286 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While developing a custom module to manage one of our kafka cluster I've discovered a strange behaviour on the resource
kafka_acl
- the providers sometimes tries to replace ACLs that do not need to be replaced.I've reproduced the issue with the following simple manifest:
The first
terraform apply
works well and I get the following output fromterraform show
:and in Kafka the ACLs are also correct:
The problems starts if I run a
terraform plan
/terraform apply
- even without changing the manifest terraform returns:It looks it mixes the two ACLs while reading the data from Kafka. In the log I get the following messages:
The text was updated successfully, but these errors were encountered: