Skip to content

jjkindergarten/ecs-sentence-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

This repo is mainly about a demo to deploy a tensorflow model on AWS ECS and use api to call the model.

Prerequisite

  • terraform
  • tensorflow == 2.8.0
  • python == 3.8
  • fastapi

Architect

Figure 1

That's how the infra architect looks like after run terrafrom init and terraform apply on the infra folder. The step to build this infra:

  • Create a terraform.tfvars file in infra folder and save your secret there
  • Set up the VPC (vpc, Internet Gateway, route table, subnet)
  • Set up the ECS cluster, define the ECS task and set up the ECS service
  • Set up IAM role for the ECS task to grant it permission to access S3 and ECR
  • Set up the Application Load Balancer to load traffic to ECS service in different subnet
  • Set up the security group of ALB and ECS, only allow input traffic from ALB to be in the ECS service
  • Set up a log group for debug and monitor what's inside the ECS service

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published