Skip to content

Conversation

@gabrielkoo
Copy link
Owner

Changes

  • Refactor prepare_source.sh to use patch files instead of sed for cleaner, maintainable code modifications
  • Add 5 patch files in patches/ directory:
    • auth.py.patch - Graceful API key fallback (fixes local testing)
    • app.py.patch - Remove Mangum import
    • requirements.txt.patch - Remove mangum dependency
    • pydantic-version.patch - Update pydantic version constraint
    • no-embeddings.patch - Remove embeddings (applied conditionally)
  • Add template-with-secrets-manager.yaml for optional Secrets Manager deployment (~$0.40/month)
  • Update GitHub Actions workflow to set API_KEY env var for local uvicorn tests
  • Update README with patches info and Secrets Manager deployment instructions

Testing

All 4 deployments tested successfully:

  • ✅ ap-southeast-1 (Original template)
  • ✅ ap-southeast-1 (Secrets Manager template)
  • ✅ ap-east-1 (Original template)
  • ✅ ap-east-1 (Secrets Manager template)

CI will validate the build process.

- Refactor prepare_source.sh to use patch files instead of sed
- Add patches/ directory with 5 patch files for clean modifications
- Add auth.py patch for graceful API key fallback
- Add Secrets Manager template option (template-with-secrets-manager.yaml)
- Update GitHub Actions workflow to set API_KEY env var for tests
- Update README with patches info and Secrets Manager deployment option
@gabrielkoo gabrielkoo merged commit 7c4aca6 into main Oct 26, 2025
2 checks passed
@gabrielkoo gabrielkoo deleted the refactor-patches-secrets-manager branch October 26, 2025 04:15
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.

2 participants