<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale-bi3yy4sta" -->

---
title: Deploy a Serverless FastAPI App with Neon Postgres and...
description: Step-by-step guide to deploying a serverless FastAPI application using AWS App Runner and Neon Postgres. Covers local setup with Poetry, connecting to Neon&#x27;s...
canonical: https://daily.dev/posts/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale-bi3yy4sta
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Deploy a Serverless FastAPI App with Neon Postgres and AWS App Runner at any scale | daily.dev
og:description: Step-by-step guide to deploying a serverless FastAPI application using AWS App Runner and Neon Postgres. Covers local setup with Poetry, connecting to Neon&#x27;s...
og:url: https://daily.dev/posts/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale-bi3yy4sta
og:image: https://api.daily.dev/og/posts/bI3Yy4sta.png
og:image:alt: Deploy a Serverless FastAPI App with Neon Postgres and AWS App Runner at any scale
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy a Serverless FastAPI App with Neon Postgres and AWS App Runner at any scale

**[Neon](https://daily.dev/sources/neontech)** · 11 min read · 0 upvotes · 0 comments

## Summary

Step-by-step guide to deploying a serverless FastAPI application using AWS App Runner and Neon Postgres. Covers local setup with Poetry, connecting to Neon's serverless Postgres via SQLModel and psycopg3, securing database credentials with AWS SSM Parameter Store, configuring apprunner.yaml for CI/CD, creating IAM instance roles, and deploying the service with automatic scaling on each Git push.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://neon.com/blog/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale>

---

Tags: [#python](https://daily.dev/tags/python), [#postgresql](https://daily.dev/tags/postgresql), [#serverless](https://daily.dev/tags/serverless), [#fastapi](https://daily.dev/tags/fastapi)

[View this post on daily.dev](https://daily.dev/posts/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale-bi3yy4sta)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Deploy a Serverless FastAPI App with Neon Postgres and AWS App Runner at any scale","url":"https://daily.dev/posts/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale-bi3yy4sta","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale-bi3yy4sta"},"datePublished":"2026-07-09T06:57:51.273Z","dateModified":"2026-07-09T07:03:51.805Z","description":"Step-by-step guide to deploying a serverless FastAPI application using AWS App Runner and Neon Postgres. Covers local setup with Poetry, connecting to Neon's...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f889bdf2b0b1297ef392ca8eb793d987?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f889bdf2b0b1297ef392ca8eb793d987?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Neon","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Neon","logo":"https://media.daily.dev/image/upload/s--65EDghou--/f_auto/v1724339118/logos/neontech","url":"https://daily.dev/sources/neontech"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale-bi3yy4sta","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,postgresql,serverless,fastapi","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Neon","item":"https://daily.dev/sources/neontech"},{"@type":"ListItem","position":3,"name":"Deploy a Serverless FastAPI App with Neon Postgres and AWS App Runner at any scale"}]}
```

