-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update VCS and postgres PL docs for accuracy and completeness #4782
Merged
Merged
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2ccd07e
update VCS and postgres PL docs for accuracy and completeness
dhaworth b187886
Merge branch 'current' into update-vcs-privatelink-details
dhaworth 4a51e4d
Update website/docs/docs/cloud/secure/vcs-privatelink.md
dhaworth 25b7a8f
obfuscate some screenshot values and change header to callout
dhaworth 0f5c474
Merge branch 'update-vcs-privatelink-details' of github.com:dbt-labs/…
dhaworth 1e9d7f8
Merge branch 'current' into update-vcs-privatelink-details
matthewshaver 10cd92a
Update vcs-privatelink.md
matthewshaver 5e0301c
remove markdown formatting from callout
dhaworth a0da049
a few more screenshot obfuscation tweaks
dhaworth e83a368
obfuscate one more value
dhaworth a7a6f97
obfuscate one more value - again
dhaworth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,11 @@ Creating an Interface VPC PrivateLink connection requires creating multiple AWS | |
|
||
This approach is distinct from and does not require you to implement VPC peering between your AWS account(s) and dbt Cloud. | ||
|
||
You need these resource to create a PrivateLink connection, which allows the dbt Cloud application to connect to your self-hosted cloud VCS. These resources can be created via the AWS Console, AWS CLI, or Infrastructure-as-Code such as [Terraform](https://registry.terraform.io/providers/hashicorp/aws/latest/docs) or [AWS CloudFormation](https://aws.amazon.com/cloudformation/). | ||
### 1. Provision AWS resources | ||
|
||
Creating an Interface VPC PrivateLink connection requires creating multiple AWS resources in the account containing, or connected to, your self-hosted cloud VCS. These resources can be created via the AWS Console, AWS CLI, or Infrastructure-as-Code such as [Terraform](https://registry.terraform.io/providers/hashicorp/aws/latest/docs) or [AWS CloudFormation](https://aws.amazon.com/cloudformation/). | ||
|
||
- **Security Group (AWS hosted only)** — If you are connecting to an existing VCS install, this likely already exists, however, you may need to add or modify Security Group rules to accept traffic from the Network Load Balancer (NLB) created for this Endpoint Service. | ||
- **Target Group(s)** - A [Target Group](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html) is attached to a [Listener](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-listeners.html) on the NLB and is responsible for routing incoming requests to healthy targets in the group. If connecting to the VCS system over both SSH and HTTPS, two **Target Groups** will need to be created. | ||
- **Target Type (choose most applicable):** | ||
- **Instance/ASG:** Select existing EC2 instance(s) where the VCS system is running, or [an autoscaling group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-load-balancer-asg.html) (ASG) to automatically attach any instances launched from that ASG. | ||
|
@@ -46,23 +49,38 @@ You need these resource to create a PrivateLink connection, which allows the dbt | |
- **Load balancer:** Attach the NLB created in the previous step. | ||
- **Acceptance required (recommended)**: When enabled, requires a new connection request to the VPC Endpoint Service to be accepted by the customer before connectivity is allowed ([details](https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html#accept-reject-connection-requests)). | ||
|
||
Once these resources have been provisioned, access needs to be granted for the dbt Labs AWS account to create a VPC Endpoint in our VPC. On the newly created VPC Endpoint Service, add a new [Allowed Principal](https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html#add-remove-permissions) for the appropriate dbt Labs principal: | ||
### 2. Grant dbt AWS account access to the VPC Endpoint Service | ||
|
||
Once these resources have been provisioned, access needs to be granted for the dbt Labs AWS account to create a VPC Endpoint in our VPC. On the provisioned VPC endpoint service, click the **Allow principals** tab. Click **Allow principals** to grant access. Enter the ARN of the following IAM role in the appropriate production AWS account and save your changes ([details](https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html#add-remove-permissions)). | ||
|
||
- **AWS Account ID:** `arn:aws:iam::<account id>:root` (contact your dbt Labs account representative for appropriate account ID). | ||
- Principal: `arn:aws:iam::346425330055:role/MTPL_Admin` | ||
|
||
### Completing the connection | ||
### 3. Obtain VPC Endpoint Service Name | ||
|
||
To complete the connection, dbt Labs must now provision a VPC Endpoint to connect to your VPC Endpoint Service. This requires you send the following information: | ||
|
||
- VPC Endpoint Service name: | ||
Once the VPC Endpoint Service is provisioned and configured find the service name in the AWS console by navigating to **VPC** → **Endpoint Services** and selecting the appropriate endpoint service. Copy the service name field value and include it in your communication to dbt Cloud support. | ||
|
||
<Lightbox src="/img/docs/dbt-cloud/cloud-configuring-dbt-cloud/vpc-endpoint-service-name.png" width="80%" title="Location of the VPC Endpoint Service name in the AWS console" /> | ||
|
||
- **DNS configuration:** If the connection to the VCS service requires a custom domain and/or URL for TLS, a private hosted zone can be configured by the dbt Labs Infrastructure team in the dbt Cloud private network. For example: | ||
### NOTE: Custom DNS configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't style |
||
If the connection to the VCS service requires a custom domain and/or URL for TLS, a private hosted zone can be configured by the dbt Labs Infrastructure team in the dbt Cloud private network. For example: | ||
- **Private hosted zone:** `examplecorp.com` | ||
- **DNS record:** `github.examplecorp.com` | ||
|
||
### Accepting the connection request | ||
### 4. Add the required information to the template below, and submit your request to [dbt Support](https://docs.getdbt.com/community/resources/getting-help#dbt-cloud-support): | ||
``` | ||
Subject: New Multi-Tenant PrivateLink Request | ||
- Type: VCS Interface-type | ||
- VPC Endpoint Service Name: | ||
- Custom DNS (optional) | ||
- Private hosted zone: | ||
- DNS record: | ||
- VCS install AWS Region (e.g., us-east-1, eu-west-2): | ||
- dbt Cloud multi-tenant environment (US, EMEA, AU): | ||
``` | ||
|
||
dbt Labs will work on your behalf to complete the PrivateLink setup. Please allow 1-2 business days for this process to complete. Support will contact you when the endpoint is available. | ||
|
||
### 5. Accepting the connection request | ||
|
||
When you have been notified that the resources are provisioned within the dbt Cloud environment, you must accept the endpoint connection (unless the VPC Endpoint Service is set to auto-accept connection requests). Requests can be accepted through the AWS console, as seen below, or through the AWS CLI. | ||
|
||
|
@@ -73,6 +91,7 @@ Once you accept the endpoint connection request, you can use the PrivateLink end | |
## Configure in dbt Cloud | ||
|
||
Once dbt confirms that the PrivateLink integration is complete, you can use it in a new or existing git configuration. | ||
|
||
1. Select **PrivateLink Endpoint** as the connection type, and your configured integrations will appear in the dropdown menu. | ||
2. Select the configured endpoint from the drop down list. | ||
3. Click **Save**. | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the endpoint ID in this doc sensitive - does it need to be obfuscated or is it ok as-is?