confluent_network_link_service Resource

General Availability

confluent_network_link_service provides a Network Link Service resource that enables creating, editing, and deleting Network Link Services on Confluent Cloud.

Example Usage

resource "confluent_environment" "development" {
  display_name = "Development"
}

resource "confluent_network" "aws-private-link" {
  display_name     = "AWS Private Link Network"
  cloud            = "AWS"
  region           = "us-east-1"
  connection_types = ["PRIVATELINK"]
  zones            = ["use1-az1", "use1-az2", "use1-az6"]
  environment {
    id = confluent_environment.development.id
  }

  lifecycle {
    prevent_destroy = true
  }
}

resource "confluent_network_link_service" "aws_nls" {
  display_name = "AWS Private Link network link service"
  environment {
    id = confluent_environment.development.id
  }
  network {
    id = confluent_network.aws-private-link.id
  }
  description = "Test NL service"
  accept {
    environments = ["env-5678", "env-0923"]
    networks = ["n-1234"]
  }

  lifecycle {
    prevent_destroy = true
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the preceding arguments, the following attributes are exported:

Import

You can import a Network Link Service by using Environment ID and Network Link Service ID, in the format <Environment ID>/<Network Link Service ID>. The following example shows how to import a Network Link Service:

$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
$ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
$ terraform import confluent_network_link_service.my_nls env-abc123/nls-abc123

Getting Started

The following end-to-end examples might help to get started with confluent_network_link_service resource: