Skip to content
All expertise

Expertise · Hassan Ali / Cognetheus

AWS engineering: ECS Fargate, Terraform, Bedrock and CI/CD

Hassan Ali owns AWS infrastructure and application code together: FastAPI and LangGraph services on ECS Fargate with RDS PostgreSQL, Cognito and Terraform at CareRequest AI (in progress), and zero-downtime CI/CD on AWS for a clinic platform launched in 10 live centers.

AWS BedrockAWS ECS FargateECRRDS PostgreSQLCognitoTerraformPython (FastAPI)LangGraphNestJSNext.jsALBEC2S3SQSSESAPI GatewayCloudWatchDockerGitHub Actions

I take on AWS work as the engineer who also writes the code that runs there, so infrastructure and application decisions are made together instead of being passed between teams. At CareRequest AI, an Irish patient-access platform I work on remotely as Lead AI Engineer, I own delivery from architecture to production, including CI/CD, observability, security gates and ongoing operations.

That platform is still being built. Its core is a Python (FastAPI) API and a LangGraph agent on Amazon Bedrock, running on AWS ECS Fargate with RDS PostgreSQL for data and Cognito for identity, and the infrastructure is provisioned with Terraform. It is designed so one agent and API serve white-label partners, clinical software vendors and provider-facing apps. The regulated setting adds EU data residency, consent and audit trails, field-level encryption and a 99.9% availability target on AWS to the infrastructure requirements. That 99.9% is a design target, not measured uptime.

In 2025, at Coderzhunt, I set up CI/CD on AWS with zero-downtime deployments for Patients Management, a HIPAA-aligned clinic platform with a NestJS backend and a Next.js front end. It launched with about 5,000 active patient records across 10 live centers. On the same platform I integrated AWS Bedrock under a BAA through a FastAPI service to generate clinical pointers, document analysis and case insights. Bedrock is also one of the model providers, alongside OpenAI and Vertex AI, in the RAG and CAG pipelines I have delivered at Coderzhunt.

This work suits a startup or product team on AWS that wants one person accountable for both sides: the FastAPI or NestJS services, the Terraform that provisions their environment, Cognito for identity, PostgreSQL on RDS, Bedrock for model access and a release pipeline that ships without taking the app down. It also suits teams handling regulated data, where residency, encryption and audit requirements shape the infrastructure from the start. If your stack is on Google Cloud instead, my GCP and Vertex AI work has its own page.

What I do

FastAPI and LangGraph services on ECS Fargate

Running Python (FastAPI) and LangGraph services on AWS ECS Fargate, with RDS PostgreSQL for data and Cognito for identity, on the CareRequest AI platform (in progress).

AWS infrastructure in Terraform

Provisioning CareRequest AI's AWS infrastructure with Terraform while also writing the application services that run on it, so infrastructure and code sit with the same delivery owner.

CI/CD with zero-downtime deployments

Setting up CI/CD on AWS with zero-downtime deployments, as on the Patients Management clinic platform built with NestJS and Next.js and launched across 10 live centers.

Amazon Bedrock in three settings

Using Bedrock under a BAA for clinical features through FastAPI, with a LangGraph agent at CareRequest AI (in progress), and as a model provider in RAG and CAG pipelines.

Delivery from architecture to production

Owning CI/CD, observability, security gates and ongoing operations at CareRequest AI, from the first architecture decisions through to production.

Infrastructure for regulated workloads

Designing AWS infrastructure around EU data residency, consent and audit trails, field-level encryption and a 99.9% availability design target at CareRequest AI.

Proof

  • —CareRequest AI (in progress): Python (FastAPI) and LangGraph on AWS ECS Fargate with RDS PostgreSQL, Cognito and Amazon Bedrock, provisioned with Terraform.
  • —At CareRequest AI, delivery is owned from architecture to production, including CI/CD, observability, security gates and ongoing operations.
  • —CareRequest AI is designed for EU data residency, consent and audit trails, field-level encryption and 99.9% availability on AWS (a design target; the platform is still being built).
  • —Set up CI/CD on AWS with zero-downtime deployments for a NestJS and Next.js clinic platform that launched with ~5,000 active patient records across 10 live centers. Patients Management 0→1 (HIPAA Clinic Platform)
  • —Integrated AWS Bedrock under a BAA with FastAPI to generate clinical pointers, document analysis and case insights within compliance constraints. Patients Management 0→1 (HIPAA Clinic Platform)
  • —Specialized in RAG and CAG architectures using OpenAI, Vertex AI and AWS Bedrock, with hybrid retrieval and vector search.

Related work

Questions

Who can set up CI/CD on AWS with zero-downtime deployments for a NestJS and Next.js app?
Hassan Ali did this for Patients Management, a HIPAA-aligned clinic platform with a NestJS, TypeORM and MySQL backend and a Next.js front end. The CI/CD ran on AWS with zero-downtime deployments, and the platform launched with about 5,000 active patient records across 10 live centers, with a target footprint of 45+ centers.
Can one engineer own both the Terraform and AWS infrastructure and the FastAPI code?
Yes. At CareRequest AI, Hassan Ali leads the end-to-end build as Lead AI Engineer on a remote contract with the Irish company. The role's stack spans both sides: FastAPI and LangGraph services, and AWS ECS Fargate, RDS PostgreSQL and Cognito provisioned with Terraform. The same role owns CI/CD, observability, security gates and ongoing operations. The platform is still being built.
Does the 99.9% availability figure for CareRequest AI describe measured uptime?
No. 99.9% availability on AWS is a design requirement for CareRequest AI, set alongside EU data residency, consent and audit trails and field-level encryption. The platform is still being built, so there is no uptime history to report. Hassan Ali owns the delivery path that has to meet the target: architecture, CI/CD, observability, security gates and operations.
Does Hassan Ali work on Google Cloud as well as AWS?
Yes. Alongside the AWS work, Hassan Ali has built on Google Cloud with Vertex AI, BigQuery, Firestore, Cloud Run, Pub/Sub and Cloud Functions v2, across a multi-tenant RAG platform, an AI-driven BI tool and a logistics system. That work is described on the Google Cloud and Vertex AI page.

Need this built?

I take on contract and full-time engagements. Tell me what you're building.

Other expertise