Skip to content

feat!: read raw-free medallion names and fail loudly when absent - #7

Merged
JoshuaHarris391 merged 1 commit into
mainfrom
feat/drop-raw-prefix
Aug 5, 2026
Merged

feat!: read raw-free medallion names and fail loudly when absent#7
JoshuaHarris391 merged 1 commit into
mainfrom
feat/drop-raw-prefix

Conversation

@JoshuaHarris391

Copy link
Copy Markdown
Collaborator

Pairs with aws-gen3-pipeline v2.0.0 (raw-free SSM keys). Two changes:

  • Key + var rename: dbt-env reads glue/db/bronze|silver|gold and buckets/silver|gold, and emits G3DT_DB_BRONZE|SILVER|GOLD (+ _CI). G3DT_S3_*_DATA_DIR[_CI] names unchanged. Release search scoping reads the new DB keys.
  • Loud failures: every medallion key read now goes through _req_key, which raises ConfigError naming the missing key and the likely cause (pipeline older than v2.0.0). Previously a missing key made vars vanish silently, emitted s3://None/dbt/, and sent release search on an account-wide catalog walk — a new test pins the loud behaviour and documents that history.

BREAKING CHANGE (v3.0.0): G3DT_DB_RAW_* vars are gone; toolkit ≥3 requires a pipeline deployment ≥ v2.0.0.

348 tests pass.

Read the raw-free medallion SSM keys published by gen3-aws-data-pipeline
>= v2.0.0 (buckets/silver|gold, glue/db/bronze|silver|gold) and replace
the silent rc.get() reads with a _req_key guard that raises ConfigError
naming the missing key and the likely cause (pipeline older than v2.0.0).
Previously an absent key propagated as None: dbt-env dropped G3DT_DB_*
export lines and emitted s3://None/dbt/ data dirs, and the release
model search silently widened to an account-wide Glue catalog walk.

BREAKING CHANGE: dbt-env variables renamed: G3DT_DB_RAW_BRONZE ->
G3DT_DB_BRONZE, G3DT_DB_RAW_SILVER -> G3DT_DB_SILVER, G3DT_DB_RAW_GOLD ->
G3DT_DB_GOLD, G3DT_DB_RAW_SILVER_CI -> G3DT_DB_SILVER_CI,
G3DT_DB_RAW_GOLD_CI -> G3DT_DB_GOLD_CI. Toolkit >= 3 pairs only with a
gen3-aws-data-pipeline deployment >= v2.0.0 (which publishes the raw-free
SSM keys); older deployments must upgrade the pipeline or pin
gen3-dataops-toolkit<3.
@JoshuaHarris391
JoshuaHarris391 merged commit a6ed552 into main Aug 5, 2026
1 check passed
@JoshuaHarris391
JoshuaHarris391 deleted the feat/drop-raw-prefix branch August 5, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant