confluent_peering
describes a Peering data source.
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_peering" "example_using_id" {
id = "peer-abc123"
environment {
id = "env-xyz456"
}
}
output "example_using_id" {
value = data.confluent_peering.example_using_id
}
data "confluent_peering" "example_using_name" {
display_name = "my_peering"
environment {
id = "env-xyz456"
}
}
output "example_using_name" {
value = data.confluent_peering.example_using_name
}
The following arguments are supported:
id
- (Optional String) The ID of the Peering, for example, peer-abc123
.display_name
- (Optional String) A human-readable name for the Peering.environment
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Environment that the Peering belongs to, for example, env-xyz456
.In addition to the preceding arguments, the following attributes are exported:
id
- (Required String) The ID of the Peering, for example, peer-abc123
.display_name
- (Optional String) The name of the Peering.environment
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Environment that the Peering belongs to, for example, env-abc123
.network
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Network that the Peering belongs to, for example, n-abc123
.aws
- (Optional Configuration Block) The AWS-specific Peering details if available. It supports the following:
account
- (Required String) The AWS Account ID of the peer VPC owner. You can find your AWS Account ID here under My Account section of the AWS Management Console. Must be a 12 character string.vpc
- (Required String) The AWS VPC ID of the peer VPC that you're peering with Confluent Cloud. You can find your AWS VPC ID here under Your VPCs section of the AWS Management Console. Must start with vpc-
.routes
- (Required String) The AWS VPC CIDR blocks or subsets. This must be from the supported CIDR blocks and must not overlap with your Confluent Cloud CIDR block or any other network peering connection VPC CIDR (learn more about the requirements here). You can find AWS VPC CIDR here under Your VPCs -> Target VPC -> Details section of the AWS Management Console.customer_region
- (Required String) The region of the AWS peer VPC.azure
- (Optional Configuration Block) The Azure-specific Peering details if available. It supports the following:
tenant
- (Required String) The Tenant ID that represents an organization in Azure Active Directory. You can find your Azure Tenant ID in the Azure Portal under Azure Active Directory. Must be a valid 32 character UUID string.vnet
- (Required String) The resource (composite) ID of the peer Virtual Network that you're peering with Confluent Cloud, in the format /subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.Network/virtualNetworks/<VNet name>
. You can find Subscription ID, Resource Group Name and your VNet name under Virtual Networks -> Target VNet -> Essentials section of your Microsoft Azure Portal.customer_region
- (Required String) The region of the Azure peer VNet.gcp
- (Optional Configuration Block) The Azure-specific Peering details if available. It supports the following:
project
- (Required String) The GCP Project ID. You can find your Google Cloud Project ID under Project ID section of your Google Cloud Console dashboard.vpc_network
- (Required String) The VPC network name that you're peering to Confluent Cloud. You can find your VPC network name under VPC Networks section of your Google Cloud Console.import_custom_routes
- (Optional Boolean) The Import Custom Routes option enables connectivity to a Confluent Cloud cluster in Google Cloud from customer premise or other clouds, such as AWS and Azure, through a customer VPC that is peered with Confluent Cloud in the same region. Defaults to false
. Learn more about considerations / limitations of the Import Custom Routes option here.