A quick presentation on what AWS Lambda is about and what was announced at AWS re:Invent 2015 Las Vegas. In see Lambda as a easy to define event handles that glue different AWS services together at a surprising scale.
2. Me
Currently leading Cloudera Director
Previously Axemblr, Cloudsoft, Facebook, Adobe etc.
Attended AWS re:invent 2015
Looking at Lambda for:
1. usage data collection
2. lightweight aggregation
3.
4.
5. What can lambda do?
“Good way to glue AWS services together” - Me
6.
7.
8.
9.
10.
11.
12. Got it. What’s new?
What was announced at AWS re:Invent 2015 (link)
13. VPC support
● allow access from Lambda to internal services
● access controlled via security groups (inbound rules)
● requires additional IAM permissions (networking)
● available later this year
14. Python Functions
● Python 2.7
● built-in AWS SDK
● could be packaged as zip file
● 1.5GB size limit
● hacky support for virtualenv
● native extensions could work (must
be compiled for Amazon Linux)
http://docs.aws.amazon.
com/lambda/latest/dg/python-lambda.
html
15. Run up to 5 minutes
● Remaining time:
context.get_remaining_time_in_millis())
● Terminated at the end
● A lot can happen in 5 CPU minutes
● 100s of GB/s can be split as “small” chunks
16. Versioning & Aliasing
● ARN contains versions as suffix:
arn:aws:lambda:us-west-2:123456789012:function:PyFunc1:1234
● No version = use newest
● Versions are generated on uploaded (1,2,3…)
● All lambda configs are now linked to (name, version): language, memory,
timeout, IAM role, CloudWatch metrics & logs
● A version can have aliases:
arn:aws:lambda:us-west-2:123456789012:function:PyFunc1:prod
● Wire with aliases not specific versions or newest