You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/mws_vpc_endpoint.md
+83-8Lines changed: 83 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,14 @@ subcategory: "Deployment"
7
7
8
8
-> **Note** This resource has an evolving API, which will change in the upcoming versions of the provider in order to simplify user experience.
9
9
10
-
Enables you to register [aws_vpc_endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint) resources with Databricks such that they can be used as part of a [databricks_mws_networks](mws_networks.md) configuration.
10
+
Enables you to register [aws_vpc_endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint) resources or gcp vpc_endpoint resources with Databricks such that they can be used as part of a [databricks_mws_networks](mws_networks.md) configuration.
11
11
12
-
It is strongly recommended that customers read the [Enable Private Link](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html) documentation before trying to leverage this resource.
12
+
It is strongly recommended that customers read the [Enable AWS Private Link](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html) or the [Enable GCP Private Service Connect](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) documentation before trying to leverage this resource.
13
13
14
14
## Example Usage
15
15
16
+
### Databricks on AWS usage
17
+
16
18
Before using this resource, you will need to create the necessary VPC Endpoints as per your [VPC endpoint requirements](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html#vpc-endpoint-requirements). You can use the [aws_vpc_endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint) resource for this, for example:
Before using this resource, you will need to create the necessary Private Service Connect (PSC) connections on your Google Cloud VPC networks. You can see [Enable Private Service Connect for your workspace](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) for more details.
115
+
116
+
Once you have created the necessary PSC connections, you need to register each of them via *this* Terraform resource, which calls out to the Databricks Account API.
117
+
118
+
```hcl
119
+
variable "databricks_account_id" {
120
+
description = "Account Id that could be found in https://accounts.gcp.databricks.com/"
Typically the next steps after this would be to create a [databricks_mws_private_access_settings](mws_private_access_settings.md) and [databricks_mws_networks](mws_networks.md) configuration, before passing the `databricks_mws_private_access_settings.pas.private_access_settings_id` and `databricks_mws_networks.this.network_id` into a [databricks_mws_workspaces](mws_workspaces.md) resource:
*`account_id` - Account Id that could be found in the bottom left corner of [Accounts Console](https://accounts.cloud.databricks.com/)
115
-
*`aws_vpc_endpoint_id` - ID of configured [aws_vpc_endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint)
182
+
*`account_id` - Account Id that could be found in the Accounts Console for [AWS](https://accounts.cloud.databricks.com/) or [GCP](https://accounts.gcp.databricks.com/)
183
+
*`aws_vpc_endpoint_id` - (AWS only) ID of configured [aws_vpc_endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint)
116
184
*`vpc_endpoint_name` - Name of VPC Endpoint in Databricks Account
117
-
*`region` - Region of AWS VPC
185
+
*`region` - (AWS only) Region of AWS VPC
186
+
*`gcp_vpc_endpoint_info` - (GCP only) a block consists of Google Cloud specific information for this PSC endpoint. It has the following fields:
187
+
*`project_id` - The Google Cloud project ID of the VPC network where the PSC connection resides.
188
+
*`psc_endpoint_name` - The name of the PSC endpoint in the Google Cloud project.
189
+
*`endpoint_region` - Region of the PSC endpoint.
118
190
119
191
## Attribute Reference
120
192
121
193
In addition to all arguments above, the following attributes are exported:
122
194
123
195
*`vpc_endpoint_id` - Canonical unique identifier of VPC Endpoint in Databricks Account
124
-
*`aws_endpoint_service_id` - The ID of the Databricks endpoint service that this VPC endpoint is connected to. Please find the list of endpoint service IDs for each supported region in the [Databricks PrivateLink documentation](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html)
125
-
*`state` - State of VPC Endpoint
126
-
196
+
*`aws_endpoint_service_id` - (AWS Only) The ID of the Databricks endpoint service that this VPC endpoint is connected to. Please find the list of endpoint service IDs for each supported region in the [Databricks PrivateLink documentation](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html)
197
+
*`state` - (AWS Only) State of VPC Endpoint
198
+
*`gcp_vpc_endpoint_info`- (GCP only) a block consists of Google Cloud specific information for this PSC endpoint. It has the following fields exported:
199
+
*`psc_connection_id` - The unique ID of this PSC connection.
200
+
*`service_attachment_id` - The service attachment this PSC connection connects to.
201
+
127
202
## Import
128
203
129
204
-> **Note** Importing this resource is not currently supported.
0 commit comments