Amazon Q Developer and interface VPC endpoints (AWS PrivateLink) - Amazon Q Developer

Amazon Q Developer and interface VPC endpoints (AWS PrivateLink)

Note

Amazon Q Developer supports VPC endpoints for features available in your IDE. Chatting with Amazon Q on AWS apps and websites is not supported.

You can establish a private connection between your VPC and Amazon Q Developer by creating an interface VPC endpoint. Interface endpoints are powered by AWS PrivateLink, a technology that enables you to privately access Amazon Q APIs without an internet gateway, NAT device, VPN connection, or AWS Direct Connect connection. Instances in your VPC don't need public IP addresses to communicate with Amazon Q APIs. Traffic between your VPC and Amazon Q does not leave the Amazon network.

Each interface endpoint is represented by one or more Elastic Network Interfaces in your subnets.

For more information, see Interface VPC endpoints (AWS PrivateLink) in the Amazon VPC User Guide.

Considerations for Amazon Q VPC endpoints

Before you set up an interface VPC endpoint for Amazon Q, ensure that you review Interface endpoint properties and limitations in the Amazon VPC User Guide.

Amazon Q supports making calls to all of its API actions from your VPC, in the context of services that are configured to work with Amazon Q.

Prerequisites

Before you begin any of the procedures below, ensure that you have the following:

  • An AWS account with appropriate permissions to create and configure resources.

  • A VPC already created in your AWS account.

  • Familiarity with AWS services, especially Amazon VPC and Amazon Q.

Creating an interface VPC endpoint for Amazon Q

You can create a VPC endpoint for the Amazon Q service using either the Amazon VPC console or the AWS Command Line Interface (AWS CLI). For more information, see Creating an interface endpoint in the Amazon VPC User Guide.

Create a VPC endpoint for Amazon Q using the following service name:

  • com.amazonaws.region.q

Warning

If you are Connecting to Amazon Q through AWS PrivateLink from a third-Party IDE on an Amazon EC2 instance, then you will also creating the following endpoint:

  • com.amazonaws.region.codewhisperer

If you enable private DNS for the endpoint, you can make API requests to Amazon Q using its default DNS name for the Region, for example, q.us-east-1.amazonaws.com.

For more information, see Accessing a service through an interface endpoint in the Amazon VPC User Guide.

Note

Currently, you can only create an interface endpoint for Amazon Q Developer in the US East (N. Virginia) Region.

Using an on-premises computer to connect to a Amazon Q endpoint

This section describes the process of using an on-premises computer to connect to Amazon Q through a AWS PrivateLink endpoint in your AWS VPC.

Using an in-console coding environment to connect to a Amazon Q endpoint

This section describes the process of using an in-console coding environment to connect to a Amazon Q endpoint.

In this context, an in-console IDE is an IDE that you access inside the AWS console, and authenticate to with IAM. Examples include AWS Cloud9, SageMaker Studio, and AWS Glue Studio.

  1. Create an interface VPC endpoint for Amazon Q.

  2. Set up Amazon Q with the in-console coding environment

  3. Configure the coding environment to use the Amazon Q endpoint.

Connecting to Amazon Q through AWS PrivateLink from a third-Party IDE on an Amazon EC2 instance

This section will walk you through the process of installing a third-party Integrated Development Environment (IDE) like Visual Studio Code or JetBrains on an Amazon EC2 instance, and configuring it to connect to Amazon Q using AWS PrivateLink.

  1. Create an interface VPC endpoint for Amazon Q.

  2. Launch an Amazon EC2 instance in your desired subnet within your VPC. You can choose an Amazon Machine Image (AMI) that is compatible with your third-party IDE. For example, you can select an Amazon Linux 2 AMI.

  3. Connect to the Amazon EC2 instance.

  4. Install and Configure the IDE (Visual Studio Code or JetBrains).

  5. Install the Amazon Q extension or plugin.

  6. Configure the IDE to connect via AWS PrivateLink.