Connect Configuration¶
Environment detection and secrets management for AWS services.
_ConfigurationManager
¶
Loads configuration for AWS credentials, RDS secrets, SSH tunnel setup, and DB options. Configuration is loaded in order: optional .env → environment vars → kwargs.
_SshTunnelManager
¶
Handles creation and teardown of an SSH tunnel to a remote database host. Requires config with SSH credentials and target DB host/port.
Initialize SSH tunnel manager with DB + SSH credentials.
Text Only
- PGHOST, PGPORT, PGPASSWORD, etc.
- SSH_TUNNEL:
- SSH_SERVER
- SSH_PORT
- SSH_USER
- (SSH_PASSWORD | SSH_KEY_PATH)