Recap on AWS Lambda after re:Invent 2015

20
Recap: AWS Lambda What’s new after AWS re:Invent 2015? AdvancedAWS / Andrei Savu / @andreisavu

Transcript of Recap on AWS Lambda after re:Invent 2015

Page 1: Recap on AWS Lambda after re:Invent 2015

Recap: AWS Lambda

What’s new after AWS re:Invent 2015?AdvancedAWS / Andrei Savu / @andreisavu

Page 2: Recap on AWS Lambda after re:Invent 2015

MeCurrently leading Cloudera Director

Previously Axemblr, Cloudsoft, Facebook, Adobe etc.

Attended AWS re:invent 2015

Looking at Lambda for:

1. usage data collection2. lightweight aggregation

Page 3: Recap on AWS Lambda after re:Invent 2015
Page 5: Recap on AWS Lambda after re:Invent 2015

What can lambda do?

“Good way to glue AWS services together” - Me

Page 6: Recap on AWS Lambda after re:Invent 2015
Page 7: Recap on AWS Lambda after re:Invent 2015
Page 8: Recap on AWS Lambda after re:Invent 2015
Page 9: Recap on AWS Lambda after re:Invent 2015
Page 10: Recap on AWS Lambda after re:Invent 2015
Page 11: Recap on AWS Lambda after re:Invent 2015
Page 12: Recap on AWS Lambda after re:Invent 2015

Got it. What’s new?

What was announced at AWS re:Invent 2015 (link)

Page 13: Recap on AWS Lambda after re:Invent 2015

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

Page 14: Recap on AWS Lambda after re:Invent 2015

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

Page 15: Recap on AWS Lambda after re:Invent 2015

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

Page 16: Recap on AWS Lambda after re:Invent 2015

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

Page 17: Recap on AWS Lambda after re:Invent 2015

Version & Aliasing

Page 18: Recap on AWS Lambda after re:Invent 2015

Scheduled Functions (cron-like, UI only)

Page 19: Recap on AWS Lambda after re:Invent 2015
Page 20: Recap on AWS Lambda after re:Invent 2015

Thanks!

Andrei Savu @andreisavu