Using AWS Lambda for Infrastructure Automation and Beyond
Transcript of Using AWS Lambda for Infrastructure Automation and Beyond
![Page 1: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/1.jpg)
Using AWS Lambda for Infrastructure Automation and Beyond
Mykola TurskyiDevOps Architect, SoftServe
![Page 2: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/2.jpg)
- Working in IT since 2005- DevOps Architect at SoftServe since 2013- Pioneered Cloud Management with Scalr- Working with since 2007
About me
nturskynicktursky
![Page 3: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/3.jpg)
AWS Lambda overview
![Page 4: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/4.jpg)
Why AWS Lambda?
![Page 5: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/5.jpg)
AWS Lambda OverviewGeneral approach
Event source
![Page 6: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/6.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/7.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/8.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/9.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/10.jpg)
AWS Lambda OverviewUse cases- Log processing
![Page 11: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/11.jpg)
AWS Lambda OverviewUse cases- Event stream processing
![Page 12: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/12.jpg)
AWS Lambda Overview
- Deployment flow automation
Use cases
![Page 13: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/13.jpg)
AWS Lambda OverviewUse cases- Infrastructure automation
![Page 14: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/14.jpg)
AWS Lambda OverviewUse cases- Serverless API service
![Page 15: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/15.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/16.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/17.jpg)
Demo
AWS Lambda for Infrastructure Automation
![Page 18: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/18.jpg)
AWS Lambda DemoRoute53 Resource Records for ASG Servers
![Page 19: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/19.jpg)
Questions?
![Page 20: Using AWS Lambda for Infrastructure Automation and Beyond](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/20.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022070516/58758b8e1a28ab901c8b5c47/html5/thumbnails/21.jpg)
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.