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

DevFeed: [Deploy a Serverless FastAPI App with Neon Postgres and AWS App Runner at any scale](<https://devfeed.tech/articles/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale-5188.md>)

Original publisher: [Read original article](<https://neon.com/blog/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale>)

Author: Stephen Siegert

Published: 2024-02-09T17:16:46Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [FastAPI](<https://devfeed.tech/topics/fastapi.md>), [API](<https://devfeed.tech/topics/api.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [Python](<https://devfeed.tech/topics/python.md>), [Database](<https://devfeed.tech/topics/database.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Poetry](<https://devfeed.tech/topics/poetry.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [bitbucket](<https://devfeed.tech/topics/bitbucket.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [aws](<https://devfeed.tech/tags/aws.md>), [bitbucket](<https://devfeed.tech/tags/bitbucket.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [community](<https://devfeed.tech/tags/community.md>), [database](<https://devfeed.tech/tags/database.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [fastapi](<https://devfeed.tech/tags/fastapi.md>), [git](<https://devfeed.tech/tags/git.md>), [github](<https://devfeed.tech/tags/github.md>), [poetry](<https://devfeed.tech/tags/poetry.md>), [python](<https://devfeed.tech/tags/python.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [web-applications](<https://devfeed.tech/tags/web-applications.md>)

## AI overview

A practical guide to building and deploying a scalable serverless API with FastAPI and Python. It uses AWS App Runner for managed application deployment, Neon Serverless Postgres for automatically scaling database compute, and AWS Systems Manager Parameter Store for secure connection management. The article also covers local development with Poetry and automatic deployment through repository commits.

## Source excerpt

In this post, we'll guide you through setting up a scalable serverless API using FastAPI, deployed on AWS App Runner and powered by Neon Postgres as the serverless database. FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.8+ based on st...