# Local-test environment for the postcode_splitter Lambda. # # cp .env.local.example .env.local then fill in the values below. # # .env.local is gitignored. The container hits REAL AWS and a REAL Postgres, # so every value here points at infrastructure that actually exists. # # NOTE: the new DDD code uses different env var names than the repo root # .env. The mapping (root .env name -> var here) is given per section. # Keep comments on their own lines — docker-compose's env_file parser folds a # trailing "# ..." into the value. # --- Postgres (orchestration/default_orchestrator -> PostgresConfig.from_env) --- # POSTGRES_HOST <- DB_HOST, PORT <- DB_PORT, USERNAME <- DB_USERNAME, # PASSWORD <- DB_PASSWORD, DATABASE <- DB_NAME. POSTGRES_HOST= POSTGRES_PORT=5432 POSTGRES_USERNAME= POSTGRES_PASSWORD= POSTGRES_DATABASE= # POSTGRES_DRIVER=psycopg2 (optional; defaults to psycopg2) # --- Handler config (applications/postcode_splitter/handler.py) --- # S3_BUCKET_NAME: bucket holding the input address CSV (root .env: DATA_BUCKET). # ADDRESS2UPRN_QUEUE_URL: SQS queue the splitter fans batches out to; not in # the root .env (Terraform sets it in prod). S3_BUCKET_NAME= ADDRESS2UPRN_QUEUE_URL= # --- AWS credentials for boto3 (S3 + SQS clients) --- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=eu-west-2 # AWS_SESSION_TOKEN= (only if using temporary/SSO credentials)