Using AWS Lambda for Infrastructure Automation and Beyond
Transcript of Using AWS Lambda for Infrastructure Automation and Beyond
Using AWS Lambda for Infrastructure Automation and Beyond
Mykola TurskyiDevOps Architect, SoftServe
- Working in IT since 2005- DevOps Architect at SoftServe since 2013- Pioneered Cloud Management with Scalr- Working with since 2007
About me
nturskynicktursky
AWS Lambda overview
Why AWS Lambda?
AWS Lambda OverviewGeneral approach
Event source
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
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:
AWS Lambda Overview
• Node.js (JavaScript)• Java• Python• Bash, Go, Ruby (process execution)
Languages supported:
AWS Lambda OverviewPermissions model
• IAM role/policy based• Invocation permission• Execution permissions
Debug• Test execution• CloudWatch Logs
AWS Lambda OverviewUse cases- Log processing
AWS Lambda OverviewUse cases- Event stream processing
AWS Lambda Overview
- Deployment flow automation
Use cases
AWS Lambda OverviewUse cases- Infrastructure automation
AWS Lambda OverviewUse cases- Serverless API service
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
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
Demo
AWS Lambda for Infrastructure Automation
AWS Lambda DemoRoute53 Resource Records for ASG Servers
Questions?
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
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
WEBSITE:www.softserveinc.com
Thank you.