Skip to content
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

Add data: env and cluster #34

Open
rjudin opened this issue Oct 15, 2020 · 1 comment
Open

Add data: env and cluster #34

rjudin opened this issue Oct 15, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@rjudin
Copy link

rjudin commented Oct 15, 2020

Issue: as long as #33 in pending state cluster can't be created in code. That disallows to create of service accounts with API keys for this cluster which required for provider "kafka"

Proposed resolution: Please add data objects that could resolve the issue by fetching existing resources (without importing to tfstate)

ENV

data "confluentcloud_environment" "this" {
  name = "DEV"
}

which return attributes:

{
"id" = "env-xxxxx"
"name" = "DEV"
}


CLUSTER

data "confluentcloud_kafka_cluster" "this" {
  environment_id = data.confluentcloud_environment.this.id
  name           = "DEV-BASIC"
}

which return attributes:

{
"bootstrap_servers" = "SASL_SSL://pkc-xyxyx.ap-southeast-1.aws.confluent.cloud:9092"
"id" = "lkc-09034"
}

Thank you!

@Mongey Mongey added the enhancement New feature or request label Oct 15, 2020
@wheresalice
Copy link

This looks like a duplicate of #28 - albeit with a little more detail

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

No branches or pull requests

3 participants