using aws lambda for infrastructure automation and beyond

21
Using AWS Lambda for Infrastructure Automation and Beyond Mykola Turskyi DevOps Architect, SoftServe

Upload: softserve

Post on 11-Jan-2017

72 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Using AWS Lambda for Infrastructure Automation and Beyond

Using AWS Lambda for Infrastructure Automation and Beyond

Mykola TurskyiDevOps Architect, SoftServe

Page 2: Using AWS Lambda for Infrastructure Automation and Beyond

- Working in IT since 2005- DevOps Architect at SoftServe since 2013- Pioneered Cloud Management with Scalr- Working with since 2007

About me

nturskynicktursky

[email protected]

Page 3: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda overview

Page 4: Using AWS Lambda for Infrastructure Automation and Beyond

Why AWS Lambda?

Page 5: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda OverviewGeneral approach

Event source

Page 6: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda Overview

- Announced at AWS re:Invent 2014- Public availability: Apr 2015- Latest big update: Oct 2015

- Functions in Python - Support for VPC- Scheduling- Versioning

History

Page 7: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda Overview

• Kinesis Stream Entry• Schedule• API Gateway call• S3 object modification• SNS Notifications• CloudWatch Logs

• SES Email• Amazon Cognito events• AWS IoT• DynamoDB entries

And more!

Invocation:

Page 8: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda Overview

• Node.js (JavaScript)• Java• Python• Bash, Go, Ruby (process execution)

Languages supported:

Page 9: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda OverviewPermissions model

• IAM role/policy based• Invocation permission• Execution permissions

Debug• Test execution• CloudWatch Logs

Page 10: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda OverviewUse cases- Log processing

Page 11: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda OverviewUse cases- Event stream processing

Page 12: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda Overview

- Deployment flow automation

Use cases

Page 13: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda OverviewUse cases- Infrastructure automation

Page 14: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda OverviewUse cases- Serverless API service

Page 15: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda Overview

- Very small overhead on process instantiation- Instant API availability in different regions with CloudFront

Performance

Pricing$0.20 per 1 million requests (Free Tier: 1M/mo)$0.016 per 1 TB/second (Free Tier: 400 TB-seconds/mo) + data transfers, S3, other services usage

Page 16: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda Overview

- Iron.io- Webtask.io- StackHut- PaaS please?

Alternatives

Conclusions- Inexpensive- Connected with many Amazon services- Gentle learning curve- Instant availability/presence- Secure

Page 17: Using AWS Lambda for Infrastructure Automation and Beyond

Demo

AWS Lambda for Infrastructure Automation

Page 18: Using AWS Lambda for Infrastructure Automation and Beyond

AWS Lambda DemoRoute53 Resource Records for ASG Servers

Page 19: Using AWS Lambda for Infrastructure Automation and Beyond

Questions?

Page 20: Using AWS Lambda for Infrastructure Automation and Beyond

Resources

• AWS Serverless Multi-Tier Architectures Using Amazon API Gateway and AWS Lambda by AWS, Nov 2015

• https://aws.amazon.com/lambda/

• https://github.com/ntursky/aws-lambda-demo

Page 21: Using AWS Lambda for Infrastructure Automation and Beyond

USA HQToll Free: 866-687-3588 Tel: +1-512-516-8880

Ukraine HQTel: +380-32-240-9090

Bulgaria

Tel: +359-2-902-3760

GermanyTel: +49-69-2602-5857

NetherlandsTel: +31-20-262-33-23

PolandTel: +48-71-382-2800

UKTel: +44-207-544-8414

[email protected]

WEBSITE:www.softserveinc.com

Thank you.