confluent_transit_gateway_attachment Data Source

General Availability

confluent_transit_gateway_attachment describes a Transit Gateway Attachment 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_transit_gateway_attachment" "example_using_id" {
  id = "tgwa-abc123"
  environment {
    id = "env-xyz456"
  }
}
output "example_using_id" {
  value = data.confluent_transit_gateway_attachment.example_using_id
}
data "confluent_transit_gateway_attachment" "example_using_name" {
  display_name = "my_tgwa"
  environment {
    id = "env-xyz456"
  }
}
output "example_using_name" {
  value = data.confluent_transit_gateway_attachment.example_using_name
}

Argument Reference

The following arguments are supported:

Attributes Reference

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