confluent_private_link_attachment_connection
provides a Private Link Attachment Connection resource that enables creating, editing, and deleting Private Link Attachment Connections on Confluent Cloud.
resource "confluent_private_link_attachment_connection" "aws" {
display_name = "my_endpoint"
environment {
id = "env-8gv0v5"
}
aws {
vpc_endpoint_id = "vpce-0ed4d51f5d6ef9b6d"
}
private_link_attachment {
id = "platt-plyvyl"
}
}
resource confluent_private_link_attachment_connection "azure" {
display_name = "prod-azure-central-us-az1-connection"
environment {
id = "env-12345"
}
azure {
private_endpoint_resource_id = "/subscriptions/123aaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa/resourceGroups/testvpc/providers/Microsoft.Network/privateEndpoints/pe-platt-abcdef-az1"
}
private_link_attachment {
id = "platt-abcdef"
}
}
output "private_link_attachment_connection" {
value = confluent_private_link_attachment_connection.aws
}
The following arguments are supported:
display_name
- (Optional String) The name of the Private Link Attachment Connection.environment
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Environment that the Private Link Attachment Connection belongs to, for example env-xyz456
.private_link_attachment
(Required Configuration Block) supports the following:
id
- (Required String) The unique identifier for the private link attachment.aws
- (Optional Configuration Block) supports the following:
vpc_endpoint_id
- (Required String) Id of a VPC Endpoint that is connected to the VPC Endpoint service.azure
(Optional Configuration Blocks) supports the following:
private_endpoint_resource_id
- (Required String) Resource ID of the Private Endpoint that is connected to the Private Link service.In addition to the preceding arguments, the following attributes are exported:
id
- (Required String) The ID of the Private Link Attachment Connection, for example, plattc-p5j3ov
.resource_name
- (Required String) The Confluent Resource Name of the Private Link Attachment Connection, for example crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-75gxp2/private-link-attachment=platt-1q0ky0/private-link-attachment-connection=plattc-77zq2w
.You can import a Private Link Attachment Connection by using Environment ID and Private Link Attachment Connection ID, in the format <Environment ID>/<Private Link Attachment Connection ID>
. The following example shows how to import a Private Link Attachment Connection:
$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
$ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
$ terraform import confluent_private_link_attachment_connection.main env-abc123/plattc-abc123
The following end-to-end examples might help to get started with confluent_private_link_attachment_connection
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