Skip to content

Connection

Source: src/AWS/Glue/Connection.ts

An AWS Glue connection — stores the connection details (JDBC URL, VPC networking, credentials) that crawlers and jobs use to reach a data store.

import * as AWS from "alchemy/AWS";
import * as Redacted from "effect/Redacted";
const connection = yield* AWS.Glue.Connection("Warehouse", {
connectionType: "JDBC",
connectionProperties: {
JDBC_CONNECTION_URL: "jdbc:postgresql://db.example.com:5432/warehouse",
USERNAME: "glue",
PASSWORD: Redacted.make("secret"),
},
physicalConnectionRequirements: {
subnetId: subnet.subnetId,
securityGroupIdList: [securityGroup.groupId],
availabilityZone: "us-west-2a",
},
});