Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

data references #36

Closed
dehuszar opened this issue Jan 21, 2022 · 3 comments
Closed

data references #36

dehuszar opened this issue Jan 21, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@dehuszar
Copy link

Hi there,

Are there plans for data references; as in:

data "confluentcloud_kafka_cluster" "cluster_from_another_stack" {
  display_name = "basic_kafka_cluster"
}

resource "confluentcloud_kafka_topic" "orders" {
  kafka_cluster      = data.confluentcloud_kafka_cluster.cluster_from_another_stack.id
  topic_name         = "orders"
  partitions_count   = 4
  http_endpoint      = data.confluentcloud_kafka_cluster.cluster_from_another_stack.http_endpoint
  config = {
    "cleanup.policy"    = "compact"
    "max.message.bytes" = "12345"
    "retention.ms"      = "67890"
  }
  credentials {
    key    = "<Kafka API Key for data.confluentcloud_kafka_cluster.cluster_from_another_stack>"
    secret = "<Kafka API Secret for data.confluentcloud_kafka_cluster.cluster_from_another_stack>"
  }
}

We would like to have a primary repo which controls all the core infrastructure, but not have to statically store all the requisite ids and pass them in to the producer and consumer services' stack.

@linouk23 linouk23 added the enhancement New feature or request label Jan 23, 2022
@linouk23
Copy link
Collaborator

Thanks for creating this issue @dehuszar!

I definitely agree that the support for data sources will be very useful and that's something we've been working on so hopefully we'll add them in one of our next releases, stay tuned!

@linouk23
Copy link
Collaborator

👋
check out our most recent 0.4.0 release where we added data sources for:
* confluentcloud_environment
* confluentcloud_kafka_cluster
* confluentcloud_kafka_topic
* confluentcloud_service_account

@dehuszar
Copy link
Author

dehuszar commented Feb 1, 2022

Hooray! Thanks for the ping

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants