Explain Lambda versions, aliases and layers.
AdvancedConceptContainers and Serverless
Answer
Publishing creates an immutable numbered version of code plus configuration; $LATEST is mutable. An alias (like prod) is a pointer to a version that supports weighted routing between two versions for canary releases. Layers are zip archives of shared libraries/code mounted in /opt, up to 5 per function, counted against the 250 MB unzipped limit.
Event sources and permissions should reference an alias so rollouts and rollbacks are a pointer change.
More on Containers and Serverless
ECS vs EKS vs Fargate: what is the relationship?BeginnerWhat are ECS task definitions, tasks and services?BeginnerWhat are ECS capacity providers?IntermediateWhat is the difference between the ECS task role and the task execution role?IntermediateHow does `awsvpc` network mode work in ECS?IntermediateWhat deployment strategies does ECS support?Advanced