Use Aurora DSQL driver for SQLTools
The Aurora DSQL Driver for SQLTools is a Visual Studio Code
extension for Amazon Aurora DSQL that integrates with SQLTools. It
enables developers to connect to and query Aurora DSQL databases directly
from VS Code. The driver is available for installation from
Visual Studio Marketplace
Features
-
Automatic IAM Authentication
-
Standard database operations like browsing schemas, tables, and executing SQL queries.
Installation
-
Open the Extensions view.
-
Search for "Aurora DSQL Driver for SQLTools".
-
Click "Install".
Note:
The
SQLTools
extension
Authentication
In Aurora DSQL all connections use
IAM-based authentication with
time-limited tokens.
The driver automatically handles Aurora DSQL authentication using
the
Aurora DSQL Connector for node-postgres
For more information on authentication in Aurora DSQL, see the user guide.
Create an Aurora DSQL Connection
Prerequisites
-
AWS credentials configured (via AWS CLI, environment variables, or IAM roles)
Steps
-
Click the SQLTools icon in the left sidebar.
-
In the SQLTools pane, hover over CONNECTIONS and click the Add New Connection icon.
-
In the SQLTools Settings tab select Aurora DSQL Driver from the list.
-
Fill in the connection parameters.
-
AWS Region
-
Optional - the region will be parsed from the Aurora DSQL cluster endpoint.
-
Required when only a cluster ID is specified in the DSQL Cluster field.
-
-
AWS Profile
-
Used for token generation.
-
Uses the default profile if not specified.
-
-
-
Click the "Test Connection button" to test the connection.
-
Click Save Connection.