Skip to content

Lake root URI: configuration and S3 lake I/O #112

Description

@cursor

Parent

#105

Spec

spec/features/014-cicd-infrastructure/spec.md

What to build

Add application support for configurable lake root URI so the same pipeline code works against local data/ and s3://smartwealthai-data-lake-dev/:

  • Configuration module: LAKE_URI env var (file path or s3:// prefix)
  • Lake I/O abstraction: read/write Parquet under raw/, curated/, etc. for file and S3 backends
  • Add boto3 to Poetry pipeline optional group
  • Unit tests with local temp dirs (no live S3 in PR CI); optional moto if needed

This slice completes the application side of M2; Terraform provisions buckets, this issue wires the pipeline to use them.

Acceptance criteria

  • LAKE_URI selects storage backend without code forks per zone
  • Existing local demo path (data/) still works when LAKE_URI unset or points to local dir
  • S3 write/read works against dev bucket when credentials and URI are set (manual or ingest-smoke verification)
  • PR CI remains hermetic (no live AWS calls)

Blocked by

#107

Type

AFK

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-cdCI/CD and AWS infrastructure slicesready-for-agentAFK agent can pick up

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions