confluent_network Data Source

General Availability

confluent_network describes a Network data source.

Example Usage

provider "confluent" {
  cloud_api_key    = var.confluent_cloud_api_key    # optionally use CONFLUENT_CLOUD_API_KEY env var
  cloud_api_secret = var.confluent_cloud_api_secret # optionally use CONFLUENT_CLOUD_API_SECRET env var
}

data "confluent_network" "example_using_id" {
  id = "n-abc123"
  environment {
    id = "env-xyz456"
  }
}

resource "confluent_service_account" "test-sa" {
  display_name = "test_sa"
  description = "test_sa for ${data.confluent_network.example_using_id.display_name}"
}

data "confluent_network" "example_using_name" {
  display_name = "my_network"
  environment {
    id = "env-xyz456"
  }
}

output "example_using_name" {
  value = data.confluent_network.example_using_name
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the preceding arguments, the following attributes are exported: