page_title | subcategory | description |
---|---|---|
confluent_private_link_attachment_connection Resource - terraform-provider-confluent |
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"
}
}
resource confluent_private_link_attachment_connection "gcp" {
display_name = "prod-gcp-uscentral1-connection"
environment {
id = "env-12345"
}
gcp {
private_service_connect_connection_id = "48796d35-191c-4de1-83e6-3824517eaa1d"
}
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
- (Required 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 exampleenv-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.
gcp
- (Optional Configuration Block) supports the following:private_service_connect_connection_id
- (Required String) GCP Private Service Connect ID used to establish connections for all zones.
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 examplecrn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-75gxp2/private-link-attachment=platt-1q0ky0/private-link-attachment-connection=plattc-77zq2w
.
-> Note: CONFLUENT_CLOUD_API_KEY
and CONFLUENT_CLOUD_API_SECRET
environment variables must be set before importing a Private Link Attachment Connection.
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
!> Warning: Do not forget to delete terminal command history afterwards for security purposes.
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