confluentinc / terraform-provider-confluent

Terraform Provider for Confluent
Apache License 2.0
118 stars 61 forks source link

confluent_kafka_topic attributes aren't exported, but doc says they are #351

Closed greg-swift-yohana closed 5 months ago

greg-swift-yohana commented 5 months ago
image

As shown in the attached image, this document states that the attributes are exported. But they aren't.

Error: Unsupported attribute

  on .terraform/modules/pdp_dev.topics/confluent-kafka-topic/outputs.tf line 6, in output "name":
   6:   value = confluent_kafka_topic.main.name

This object has no argument, nested block, or exported attribute named
"name".

Error: Unsupported attribute

  on .terraform/modules/pdp_dev.topics/confluent-kafka-topic/outputs.tf line 10, in output "partition_count":
  10:   value = confluent_kafka_topic.main.partition_count

This object has no argument, nested block, or exported attribute named
"partition_count". Did you mean "partitions_count"?

Although, it does appear that confluent_kafka_topic.config is exported 🤷

I don't know that I care if they do get exported, but would be good to have documentation match the behavior.

linouk23 commented 5 months ago

@greg-swift-yohana thanks for the creating the issue!

You might want to try topic_name instead of name to match the docs.

greg-swift-yohana commented 5 months ago

and partitions_count instead of partition_count 🤦

thanks :D