Build
The FastAPI service is packaged as a versioned container image and stored in the artifact registry.
On-Prem / AI Integration
An on-premises delivery pattern for FastAPI services, Vault-backed secrets, AI API calls, and use case team-owned artifact and config promotion.
Built a Hydra / EPaaS delivery workflow for FastAPI services using Vault for runtime secrets, upstream AI application and API integration, and self-service promotion of the same artifact and environment config into production.
The challenge
Use case teams needed to deploy and promote their own FastAPI artifacts and environment config, including project log streams and metrics, without waiting on the platform team for every release. Runtime secrets needed to come from Vault, and the service still had to call upstream AI applications and APIs safely.
Vault was the approved source for runtime secrets.
Use case teams needed to promote their own artifacts from lower environments to production.
The same immutable artifact needed to move through the promotion path.
Environment config included project log streams and metrics.
AI API calls needed timeouts, retries, and clear failure handling.
Production promotion needed guardrails, traceability, and rollback options.
End-to-end architecture
Scroll horizontally to follow the complete architecture flow.
How I built it
Containerized the service with Docker and stored a versioned image so every environment received the same tested build.
Connected FastAPI to Vault for runtime secret retrieval and removed credentials and API keys from source control and images.
Created deployment configuration for Hydra and the EPaaS runtime with environment-specific settings kept outside the application.
Defined a release flow where use case teams promoted the same image from development and testing into production with review gates.
Included project log streams and metrics configuration in the promotion path so observability settings followed the release.
Connected FastAPI endpoints to AI applications and APIs using timeouts, retries, and clear error responses.
What changed
Runtime secret retrieval moved API keys and credentials into the approved Vault path.
Use case teams could promote their own artifacts instead of depending on the platform team for every release.
Project log streams and metrics settings were promoted as controlled environment configuration.
Promoted the same container image across environments, reducing build drift and release risk.
Added controlled timeout and retry behavior around upstream AI applications and APIs.
Used deployment checks, traceability, and rollback options before production promotion.
Technology stack
Lessons
Runtime secrets should come from Vault, never from source code or image layers.
Promoting one immutable artifact is safer than rebuilding code for every environment.
Use case teams move faster when they own promotion with clear platform guardrails.
Project log streams and metrics should be treated as part of the release config.
AI integrations need the same resilience controls as any other external dependency.
Next case study
Built and operated the cloud foundation for GenAI-enabled member support workflows, connecting Amazon Connect, event-driven services, container workloads, data stores, and operational guardrails.