> For the complete documentation index, see [llms.txt](https://docs.dinmo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dinmo.io/integrations/data-sources/aws-redshift/aws-redshift-endpoint-service.md). Agents can also search and read this documentation through its [MCP server](https://docs.dinmo.io/~gitbook/mcp).

# Connect through your endpoint service

Connect a private Redshift Serverless workgroup through an AWS PrivateLink endpoint service and NLB operated by your network team.

Use this mode when your network team needs to operate the entry point and private network path to Redshift. Your team manages an AWS PrivateLink endpoint service backed by an internal Network Load Balancer (NLB); DinMo manages the interface endpoint that connects to it.

Choose **AWS PrivateLink → Your endpoint service** in DinMo, not **Direct connection**. This mode does **not** create a Redshift-managed VPC endpoint or require a grant on the workgroup's **Granted accounts** list.

{% hint style="info" %}
This is an assisted configuration. Coordinate with your DinMo team before building it. This guide covers Redshift Serverless in `eu-west-1` on port `5439`; confirm availability with DinMo for any other configuration.
{% endhint %}

For the alternative without a customer-operated NLB, see [Redshift-managed endpoints](https://docs.dinmo.io/integrations/data-sources/aws-redshift/aws-redshift-private-link.md).

## Architecture and responsibilities

```
DinMo → DinMo interface endpoint → AWS PrivateLink
                                     ↓
                         Your endpoint service
                                     ↓
                         Your internal NLB (TCP 5439)
                                     ↓
                         Your private network path
                                     ↓
                         Your Redshift Serverless workgroup
```

Your endpoint service can be in a **network account**, while Redshift and the datashare remain in a separate **workload account**. Your team is responsible for routing traffic through any required inspection controls; PrivateLink and the NLB do not establish that inspection path by themselves.

| Responsibility                                                                  | Owner                                                         |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| Endpoint service, internal NLB, healthy targets, private routing and inspection | Your network team                                             |
| Allowing DinMo on the service and accepting its endpoint                        | Your network team, in the service-owner account               |
| Interface endpoint and DinMo-side private connection                            | DinMo                                                         |
| IAM role, local database, datashare access and SQL grants                       | Your AWS and Redshift administrators, in the Redshift account |

## Before you start

Ask your network team to prepare:

* An **internal NLB** with a TCP listener on `5439` and healthy Redshift IP targets reachable through your private network.
* **End-to-end Redshift TLS**: forward TCP without TLS termination or Proxy Protocol v2. DinMo validates the Redshift certificate against the standard workgroup hostname.
* An **IPv4 endpoint service** backed by that NLB, with **acceptance required** enabled. Keep access restricted to explicitly allowed principals.
* At least two compatible Availability Zones, agreed with DinMo. Exchange **AZ IDs**, not only names such as `eu-west-1a`, which can map differently across AWS accounts.
* Routing, security rules and the return path between the NLB and Redshift, including any required inspection layer.
* Monitoring and a process to update NLB targets when Redshift endpoint IPs change. The target group does not automatically track a hostname's changing IPs.

Your team owns availability of this path, including target health and recovery after an IP change or failure. Review AWS guidance on [creating an endpoint service](https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html). An AWS [Redshift and PrivateLink architecture example](https://aws.amazon.com/blogs/big-data/enhance-agentforce-data-security-with-private-connect-for-salesforce-data-cloud-and-amazon-redshift-part-3/) illustrates NLB IP targets and their maintenance; it is not a substitute for the DinMo setup below.

Have these values ready:

| Value                          | What to provide                                                                               |
| ------------------------------ | --------------------------------------------------------------------------------------------- |
| Standard Redshift host         | The Serverless workgroup endpoint, without a protocol, port or database name                  |
| Endpoint service name          | The full name, in the form `com.amazonaws.vpce.eu-west-1.vpce-svc-…`, not just the service ID |
| Endpoint service owner account | The 12-digit AWS account ID hosting the service; it may differ from the Redshift account      |
| Service AZ IDs                 | Share these with your DinMo team to agree on compatible endpoint placement                    |

You can create the service before DinMo provides its principal. Do not allow all principals while waiting. Do not create a DNS alias or replace the standard Redshift host with the NLB address.

## Step 1: Submit the request in DinMo

**Owner: your DinMo workspace administrator.**

1. Open **Workspace Settings → Sources → Add New Source → Amazon Redshift**.
2. Select **AWS PrivateLink**, then **Your endpoint service**.
3. Enter a source name for your DinMo workspace. It does not need to match an AWS resource name.
4. Paste the standard Redshift host and review the detected workgroup, region and Redshift account.
5. Enter the endpoint service name and its owner account.
6. Click **Start PrivateLink setup**.

The submitted request remains under **Sources**. Use **Continue setup** to return to the current step. Database credentials are configured after the private route is ready.

## Step 2: Allow DinMo on your endpoint service

**Owner: your network team, after DinMo publishes the authorization scope.**

DinMo reviews the request and displays the exact principal to authorize. In the **service-owner AWS account** and displayed region:

1. Open **VPC → Endpoint services** and select the exact service recorded in DinMo.
2. Under **Allow principals**, add the **DinMo principal ARN displayed in the setup**, retaining existing permissions.
3. Keep **Acceptance required** enabled.

Alternatively, run the command generated in DinMo. Its form is:

```bash
# Set these variables to the exact values displayed for this setup.
aws ec2 modify-vpc-endpoint-service-permissions \
  --service-id "$ENDPOINT_SERVICE_ID" \
  --add-allowed-principals "$DINMO_ALLOWED_PRINCIPAL_ARN" \
  --region "$AWS_REGION"
```

Return to DinMo and click **I authorized access in AWS**. DinMo verifies the AWS permission; clicking the button alone does not grant access.

This permission allows DinMo to request an endpoint connection. It does **not** grant database access, replace IAM role trust, or authorize all VPCs on your Redshift workgroup. Do not run the Redshift-managed endpoint authorization procedure for this mode.

## Step 3: Accept the exact interface endpoint

**Owner: your network team, after DinMo creates its endpoint.**

DinMo creates the interface endpoint and displays its exact `vpce-…` ID. This is a second AWS action, separate from allowing the principal:

1. In the service-owner account, open the same endpoint service's **Endpoint connections** tab.
2. Match both the **endpoint ID** and **DinMo requester account** against the values displayed in DinMo.
3. Select **Actions → Accept endpoint connection request** for that connection only.

Alternatively, use the command shown in DinMo:

```bash
aws ec2 accept-vpc-endpoint-connections \
  --service-id "$ENDPOINT_SERVICE_ID" \
  --vpc-endpoint-ids "$DINMO_VPC_ENDPOINT_ID" \
  --region "$AWS_REGION"
```

Return to DinMo and click **I accepted this endpoint in AWS**. Do not accept unrelated requests or disable acceptance to bypass this step. AWS documents [service permissions and endpoint acceptance](https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html) as distinct controls.

## Step 4: Wait for private network validation

**Owner: DinMo, with your network team for customer-side checks.**

DinMo verifies acceptance, endpoint availability, DNS resolution and the TLS connection to the expected Redshift host. Your network team verifies that the traffic follows the required inspection path and that the NLB targets are healthy.

When the private network connection is ready, **Continue** unlocks. You can leave the submitted setup and resume it under **Sources** while checks are in progress.

{% hint style="info" %}
Network readiness is not a successful database connection. IAM authentication and SQL permissions must still be configured and tested.
{% endhint %}

## Step 5: Configure database authentication and permissions

**Owner: your AWS and Redshift administrators, in the Redshift workload account.**

Click **Continue** and follow [Enter the Redshift details](https://docs.dinmo.io/integrations/data-sources/aws-redshift.md#step-4-enter-the-redshift-details). Keep the standard workgroup host restored by DinMo; do not enter an interface-endpoint address.

For **AWS IAM role**:

1. Enter the local writable database, AWS region and workgroup. IAM uses `redshift-serverless:GetCredentials` for that workgroup.
2. Continue to the role setup and enter the **account that owns Redshift**, not the endpoint service's network account.
3. Run the generated role and policy commands. They use a source-specific DinMo trust principal and External ID, separate from the principal allowed on the endpoint service.
4. Apply the [Serverless IAM SQL grants](https://docs.dinmo.io/integrations/data-sources/aws-redshift.md#step-5-prepare-the-database-identity-and-dinmo-schemas) to `"IAMR:<exact role name>"`, not `dinmo_user`. If the identity does not exist yet, establish the first IAM connection with **Save & test**, then apply its grants and retry.

Password authentication is also available; use its dedicated user and SQL instructions instead.

For a datashare, keep DinMo's technical schemas in a **local writable database on the consumer** and expose the shared data through external schemas there. Do not connect to the read-only imported database or grant writes back to the producer. Follow [Use a datashare through a Serverless consumer](https://docs.dinmo.io/integrations/data-sources/aws-redshift.md#use-a-datashare-through-a-serverless-consumer).

## Step 6: Validate before enabling regular syncs

Together with your DinMo team:

1. Complete **Save & test** successfully.
2. Confirm that the expected tables are visible and that a model can query them.
3. Run a test activation and verify the destination output.
4. Verify a scheduled run and confirm that your inspection controls observe the expected traffic.
5. Agree who monitors NLB targets and handles target IP changes, failures and maintenance before enabling unattended syncs.

For an existing Redshift-managed connection, coordinate the change with DinMo. Keep the working route until the replacement has been tested and a cutover and rollback plan is agreed. Do not delete the working source to start this setup.

## Troubleshooting

| Symptom                                        | What to check                                                                                                                                                                    |
| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Waiting for authorization                      | Add the exact allowed principal to the correct service in its owner account, then confirm in DinMo.                                                                              |
| Waiting for endpoint acceptance                | Accept the exact displayed `vpce-…` ID in **Endpoint connections**; allowing the principal alone is not sufficient.                                                              |
| Endpoint accepted but network validation fails | NLB target health, TCP listener, security rules, private routing, return path and inspection policies. Keep TLS end to end and Proxy Protocol v2 disabled.                       |
| TLS identity validation fails                  | Confirm the original Redshift host, backend targets and absence of TLS termination; do not substitute an endpoint DNS name or disable certificate verification.                  |
| Network ready but IAM or SQL test fails        | Check role trust, External ID, workload account, workgroup, database and grants to the exact `IAMR:…` identity. Do not restart network authorization for a SQL permission error. |

## Changes and offboarding

Coordinate changes to the service, owner account, region, workgroup or target network with DinMo before making them. Your team remains responsible for the NLB targets and inspection path; DinMo operates its interface endpoint.

For offboarding, pause new jobs and allow active jobs to finish. DinMo disables the route; your network team rejects the specific endpoint connection, and DinMo removes its endpoint. Remove only the dedicated permissions that are no longer used by any other connection.

Removing the allowed principal alone does **not** terminate an already accepted endpoint connection. Follow the [AWS endpoint-service access controls](https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html#add-remove-permissions) and agree the removal sequence with DinMo.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.dinmo.io/integrations/data-sources/aws-redshift/aws-redshift-endpoint-service.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
