Skip to main content

vibedata-dlt-redshift-studio

The dlt runtime execution unit for an Amazon Redshift Domain, installed in the Studio-local intent venv.

import dlt
from vibedata.dlt.redshift import setup_environment, finalize

setup_environment()
pipeline = dlt.pipeline(
    pipeline_name="my_pipeline", destination="redshift", dataset_name="analytics"
)
try:
    pipeline.run(source)
except Exception as e:
    finalize(pipeline, error_message=str(e))
    raise
finalize(pipeline)

setup_environment() registers the Domain's Secret Store provider and mints the Ephemeral database's password into this process, under dlt's own DESTINATION__REDSHIFT__CREDENTIALS__PASSWORD. Studio publishes the other four coordinates — HOST, PORT, DATABASE, USERNAME — into the Intent environment under the matching names, and dlt reads those natively, so the pipeline names no VD_* variable itself.

The password is separate because Redshift authenticates with a credential minted per invocation, scoped to one database and valid for at most an hour.

Without one, dlt refuses to configure the destination and names DESTINATION__REDSHIFT__CREDENTIALS__PASSWORD — which no authored pipeline sets, so this unit fails at the mint and names the Broker instead. A blank password is the case worth guarding: dlt resolves it cleanly and the load then reaches Redshift as a real login attempt, so an empty Broker answer is refused rather than set.

The minted password lives in os.environ for the life of the process, as the MotherDuck unit's token does — inherited by any child it spawns.

finalize() persists the audit tables. A Redshift load writes directly, so there is nothing to sync afterwards.

Metadata

Release files for vibedata-dlt-redshift-studio 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vibedata-dlt-redshift-studio 0.1.0
File Size Uploaded
vibedata_dlt_redshift_studio-0.1.0.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vibedata-dlt-redshift-studio 0.1.0
File Interpreter ABI Platform
vibedata_dlt_redshift_studio-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / vibedata_dlt_redshift_studio-0.1.0.tar.gz

Download URL vibedata_dlt_redshift_studio-0.1.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ff88510dac109627e508520ed0e9b95b6e793b03e3bd7bf61b1060bc58a61322
BLAKE2b-256 checksum
How to use checksums
cb0a87023f570d08b1e846990259d69c57e7d93fab4a31eb3b8b2abed5dc103f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / vibedata_dlt_redshift_studio-0.1.0-py3-none-any.whl

Download URL vibedata_dlt_redshift_studio-0.1.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2aa231281722ef5a015e119e6a152318389a3dd481b82be901cc52db34fb5233
BLAKE2b-256 checksum
How to use checksums
692cb183fc98743ad2a1a1d61d858462a0767c3d70fcbaa33f5e9bd6c1f238fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page