confluent_ip_addresses
describes IP Addresses 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_ip_addresses" "main" {
filter {
clouds = ["AWS"]
regions = ["us-east-1", "us-east-2"]
services = ["KAFKA"]
address_types = ["EGRESS"]
}
}
output "ip_addresses" {
value = data.confluent_ip_addresses.main.ip_addresses
}
The following arguments are supported:
filter
(Optional Configuration Block) supports the following:
clouds
- (Optional List of Strings) A list of clouds to filter by. Accepted values are: AWS
, AZURE
, and GCP
.regions
- (Optional List of Strings) A list of regions to filter by.services
- (Optional List of Strings) A list of services to filter by. Accepted values are: CONNECT
, KAFKA
.address_types
- (Optional List of Strings) A list of address types to filter by. Accepted values are: EGRESS
, INGRESS
.In addition to the preceding arguments, the following attributes are exported:
ip_addresses
(List of Object) List of schemas. Each schema object exports the following attributes:
api_version
- (Required String) An API Version of the schema version of the IP Address, for example, networking/v1
.kind
- (Required String) A kind of the Kafka cluster, for example, IpAddress
.ip_prefix
- (Required String) The IP Address range.cloud
- (Required String) The cloud service provider in which the address exists.region
- (Required Integer) The region/location where the IP Address is in use.address_type
- (Required Integer) Whether the address is used for egress or ingress.services
- (Required List of Strings) The service types that will use the address.