GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Ricardo-VP/serverless-fastapi: Repo for https://www.deadbear.io/simple-serverless-fastapi-with-aws-lambda/ but this repo also includes terraform 🚀

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
.gitignore
.gitignore
 
 
main.tf
main.tf
 
 
readme.md
readme.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Serverless + FastAPI (Mangum) + Terraform

How to try this? 🤔

Generate the lambda zip file (Unix/macOS) 🏗

  1. Init venv: "python3 -m virtualenv -p python3.8 env"
  2. Activate venv: "source ./env/bin/activate"
  3. Install dependencies: "python3 -m pip install -r requirements.txt"
  4. Create zip file with the venv packages: "cd env/lib/python3.8/site-packages && zip -r9 ../../../../lambda.zip ."
  5. Add app files to the zip: "cd ../../../../ && zip -g lambda.zip -r app"

Lets deploy this 🚀

  1. terraform init
  2. terraform plan # if all it's okay then go to the next step
  3. terraform apply

About

Repo for https://www.deadbear.io/simple-serverless-fastapi-with-aws-lambda/ but this repo also includes terraform 🚀

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.