Skip to content

This project will build a basic Python Flask API docker image and run it on ECS Fargate behind a private ALB. An API Gateway (HTTP) will be provisioned along with a VPC Link to allow connectivity to the ALB. The purpose of this demo is to provide the building blocks to add a custom authorizer to API Gateway.

License

Notifications You must be signed in to change notification settings

srijitm/sample-flask-fargate-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sample Flask API

Note: This is not Production grade and simply meant as a demo

Description

This project will build a basic Python Flask API docker image and run it on ECS Fargate behind a private ALB. An API Gateway (HTTP) will be provisioned along with a VPC Link to allow connectivity to the ALB. The purpose of this demo is to provide the building blocks to add a custom authorizer to API Gateway.

AWS Services

  • ECS Fargate
  • Application Load Balancer
  • API Gateway

Pre-Requisites

  • Docker
  • AWS CLI configured with appropriate permissions.

Instructions

cd app/cdk
npm install
npm run build
cdk bootstrap # Only needs to be executed once
cdk deploy # To deploy and pay $$ to AWS
cdk destroy # To delete the stack and stop paying $$ to AWS

About

This project will build a basic Python Flask API docker image and run it on ECS Fargate behind a private ALB. An API Gateway (HTTP) will be provisioned along with a VPC Link to allow connectivity to the ALB. The purpose of this demo is to provide the building blocks to add a custom authorizer to API Gateway.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published