Function should return or send result back to database/MQ immediately after internal process is complete in order to save cloud resources.
Do not use Web framework like Flask, Django, web2py, Bottle or Tornado to handle API request, create function as entry point directly instead.
- Must not contains volume
For Amazon ECR Document:
https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-ecs-ecr-codedeploy.html
For Docker Hub Document:
- Create Python or Node APP
- Dockerisation
- Upload to ECR or Docker HUB
- (optional) set up auto deployment pipeline
- Create Fargate ECS
- Task Definition (Link the docker image)
- Profit