confluent_service_account Data Source

General Availability

confluent_service_account describes a Service Account 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_service_account" "example_using_id" {
  id = "sa-abc123"
}

output "example_using_id" {
  value = data.confluent_service_account.example_using_id
}

data "confluent_service_account" "example_using_name" {
  display_name = "test_sa"
}

resource "confluent_environment" "test-env" {
  display_name = "env_for_${data.confluent_service_account.example_using_id.display_name}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: