-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provider: private connection support on all clouds (#183)
Previously, the private_endpoint_connection resource only supported AWS private link connections. This commit updates the provider code to use the new CC API Private Endpoint Connections methods. These cloud-neutral methods will work for all cloud providers and cluster types, except Serverless clusters on Azure as that configuration is not yet supported.
- Loading branch information
Showing
5 changed files
with
57 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
examples/resources/cockroach_aws_private_endpoint_connection/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
variable "cluster_id" { | ||
type = string | ||
type = string | ||
description = "the id for the CockroachDB Cloud cluster" | ||
} | ||
|
||
resource "cockroach_private_endpoint_connection" "cockroach" { | ||
cluster_id = var.cluster_id | ||
endpoint_id = "endpoint id assigned by consumer AWS" | ||
cloud_provider = "AWS" | ||
region_name = "AWS region in which the endpoint was created" | ||
endpoint_id = "the endpoint id assigned by cloud provider to the client-side of the connection" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters