Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 32 additions & 31 deletions resources/schemas.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
resources:
schemas:
# The pipeline would create schemas automatically, so this is more of a proof of concept
silver_schema:
name: silver
catalog_name: ${var.catalog_name}
comment: "Silver schema for cleaned and processed data"
lifecycle:
prevent_destroy: true
grants:
- principal: group_etl
privileges:
- ALL_PRIVILEGES
- principal: group_reader
privileges:
- USE_SCHEMA
- SELECT
# The pipeline would create schemas automatically, so this is more of a proof of concept

# resources:
# schemas:
# silver_schema:
# name: silver
# catalog_name: ${var.catalog_name}
# comment: "Silver schema for cleaned and processed data"
# lifecycle:
# prevent_destroy: true
# grants:
# - principal: group_etl
# privileges:
# - ALL_PRIVILEGES
# - principal: group_reader
# privileges:
# - USE_SCHEMA
# - SELECT

gold_schema:
name: gold
catalog_name: ${var.catalog_name}
comment: "Gold schema for aggregated and business-ready data"
lifecycle:
prevent_destroy: true
grants:
- principal: group_etl
privileges:
- ALL_PRIVILEGES
- principal: group_reader
privileges:
- USE_SCHEMA
- SELECT
# gold_schema:
# name: gold
# catalog_name: ${var.catalog_name}
# comment: "Gold schema for aggregated and business-ready data"
# lifecycle:
# prevent_destroy: true
# grants:
# - principal: group_etl
# privileges:
# - ALL_PRIVILEGES
# - principal: group_reader
# privileges:
# - USE_SCHEMA
# - SELECT

63 changes: 32 additions & 31 deletions resources/volumes.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
resources:
volumes:
# These volumes are unused and exist only as proof of concept
silver_checkpoints_volume:
name: checkpoints
catalog_name: ${var.catalog_name}
schema_name: silver
comment: "Silver volume for Spark Streaming checkpoints"
lifecycle:
prevent_destroy: true
grants:
- principal: group_etl
privileges:
- ALL_PRIVILEGES
- principal: group_reader
privileges:
- READ_VOLUME
# These volumes are unused and exist only as proof of concept

gold_checkpoints_volume:
name: checkpoints
catalog_name: ${var.catalog_name}
schema_name: gold
comment: "Gold volume for Spark Streaming checkpoints"
lifecycle:
prevent_destroy: true
grants:
- principal: group_etl
privileges:
- ALL_PRIVILEGES
- principal: group_reader
privileges:
- READ_VOLUME
# resources:
# volumes:
# silver_checkpoints_volume:
# name: checkpoints
# catalog_name: ${var.catalog_name}
# schema_name: silver
# comment: "Silver volume for Spark Streaming checkpoints"
# lifecycle:
# prevent_destroy: true
# grants:
# - principal: group_etl
# privileges:
# - ALL_PRIVILEGES
# - principal: group_reader
# privileges:
# - READ_VOLUME

# gold_checkpoints_volume:
# name: checkpoints
# catalog_name: ${var.catalog_name}
# schema_name: gold
# comment: "Gold volume for Spark Streaming checkpoints"
# lifecycle:
# prevent_destroy: true
# grants:
# - principal: group_etl
# privileges:
# - ALL_PRIVILEGES
# - principal: group_reader
# privileges:
# - READ_VOLUME