confluent_private_link_attachment
provides a Private Link Attachment resource that enables creating, editing, and deleting Private Link Attachments on Confluent Cloud.
resource "confluent_private_link_attachment" "main" {
cloud = "AWS"
region = "us-west-2"
display_name = "staging-platt"
environment {
id = "env-3732nw"
}
}
output "private_link_attachment" {
value = confluent_private_link_attachment.main
}
The following arguments are supported:
display_name
- (Optional String) The name of the Private Link Attachment.environment
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Environment that the Private Link Attachment belongs to, for example env-xyz456
.cloud
- (Required String) The cloud service provider that hosts the resources to access with the Private Link Attachment.region
- (Required String) The cloud service provider region where the resources to be accessed using the Private Link Attachment are located.In addition to the preceding arguments, the following attributes are exported:
id
- (Required String) The ID of the Private Link Attachment, for example, platt-abc123
.resource_name
- (Required String) The Confluent Resource Name of the Private Link Attachment, for example crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-75gxp2/private-link-attachment=platt-1q0ky0
.dns_domain
- (Required String) The root DNS domain for the Private Link Attachment, for example, `pr123a.us-east-2.aws.confluent.aws
- (Optional Configuration Block) supports the following:
vpc_endpoint_service_name
- (Required String) AWS VPC Endpoint Service that can be used to establish connections for all zones, for example com.amazonaws.vpce.us-west-2.vpce-svc-0d3be37e21708ecd3
.azure
(Optional Configuration Block) supports the following:
private_link_service_alias
- (Required String) Azure Private Link service alias for the availability zone.private_link_service_resource_id
- (Required String) Azure Private Link service resource id for the availability zone.You can import a Private Link Attachment by using Environment ID and Private Link Attachment ID, in the format <Environment ID>/<Private Link Attachment ID>
. The following example shows how to import a Private Link Attachment:
$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
$ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
$ terraform import confluent_private_link_attachment.main env-abc123/platt-abc123
The following end-to-end examples might help to get started with confluent_private_link_attachment
resource:
enterprise-privatelinkattachment-aws-kafka-acls
: _Enterprise_ Kafka cluster on AWS that is accessible via PrivateLink connections with authorization using ACLsenterprise-privatelinkattachment-azure-kafka-acls
: _Enterprise_ Kafka cluster on Azure that is accessible via PrivateLink connections with authorization using ACLs