A Lambda Layer is a ZIP archive / file that contains code and can be imported by Lambda functions. They are extracted to /opt folder in a Lambda function execution environment.
A task definition is required to run Docker containers in Amazon ECS. It's a blueprint that tells how a container should be launced.
- Build you image
- Push image to registry.
- Create JSON file describing your task definition.
- Register this task definition with ECS.
- Make sure that your cluster has enough resources. 6 Start a new task from the task definition.
-
ECR Repository: store versioned application container images
-
ECS Cluster: provides compute power to run application container instances
-
ECS Task Definition: specifies application container image version and environment considerations
-
ECS Service: specifies how task definition will be deployed onto underlying compute resources
-
What is a cold start?
A latency experienced when you trigger a function.