Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Cloud Conf Varna - Cloud Application with AWS Lambda functions

106 views

Published on

Learn how to build, deploy and manage massively scalable cloud services with AWS Lambda.

Gist: http://bit.ly/aws-cloud-conf

Resources:

- 15 Top Paying IT Certifications In 2016: AWS Certified Solutions Architect Leads At $125K
https://www.forbes.com/sites/louiscolumbus/2016/02/21/15-top-paying-it-certifications-in-2016-aws-certified-solutions-architect-leads-at-125k/#49f4d3347978

- Configuring the AWS CLI http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-quick-configuration

- AWS December 2015 Webinar Series - Build Mobile Backends with AWS Lambda https://www.youtube.com/watch?v=7RYApg4Wd8M

- Build Mobile Backends with AWS Lambda - Architecture Diagram https://s3.amazonaws.com/awslambda-reference-architectures/mobile-backend/lambda-refarch-mobilebackend.pdf

Published in: Software
  • Be the first to comment

  • Be the first to like this

Cloud Conf Varna - Cloud Application with AWS Lambda functions

  1. 1. Amazon Web Services
  2. 2. Why Learn AWS ? ● Fastest growing cloud computing platform on the planet ● Largest public cloud computing platform on the planet ● More and more organizations are outsourcing their IT to AWS ● The AWS Certifications are the most popular IT certifications right now ● Top Paid IT Certification for 2016 according to Forbes
  3. 3. http://bit.ly/2whWp9h
  4. 4. http://bit.ly/2uPswfT
  5. 5. Image Source: Gartner Magic Quadrant Gartner’s Magic Quadrant In August 2016 AWS was named as a leader in the IaaS Magic Quadrant for the 6th consecutive year
  6. 6. Image Source: AWS AWS Global Infrastructure 16 Regions ns & 44 Availability Zones 5 More Regions & 14 More Availability Zones August 2017
  7. 7. Image Source: AWS AWS Web Services A Region is a geographical area. Each Region consists of 2 (or more) Availability Zones. An Availability Zone (AZ) is Simply a Data Center.
  8. 8. AWS - Lambda
  9. 9. Goals / Agenda ● When to use Lambda ● How to write functions ● Integration with event sources
  10. 10. Image Source: Wikipedia Serverless “No server is easier to manage than no server at all” Werner Vogels
  11. 11. Pricing and serveless ● Pricing matches usage ● Pay as you go ● Low-to-no upfront costs
  12. 12. Why lambda ? ● Simplicity ● Save $$$ ● Easy for ops ● Easy for devs
  13. 13. Use Cases ● ETL Jobs (S3) ● APIs (with API Gateway) ● Mobile backends ● Infrastructure automation ● Data Validation
  14. 14. How Lambda Works Under the Hood ● Containers ● Shared EC2 Instances ● Resources isolation ● 100ms execution limits
  15. 15. How Lambda Works Anatomy of an Application ● Code (and dependencies) ● Event (from another AWS services) ● Output
  16. 16. How Lambda Works Event sources ● Schedules ● S3 event ● DynamoDB streams ● Kinesis streams ● SNS topics (Notification Services) ● API Gateway ● SDK invocation
  17. 17. https://console.aws.amazon.com
  18. 18. Hello World Handler ● Path to the function to be run ● Must accept 3 arguments ● Event, context and callback ● Uses index.js by default
  19. 19. Hello World index.js exports.handler = function(event, context, callback) { console.log(“Hi, everyone”); return callback(null, “hello!”); // Callback format is error, data }
  20. 20. Hello World IAM Role ● Think “role” is in “job title” ● Can have many policies ● Policies have statements like: { “Effect”: “Allow”, “Action”: “logs:CreateLogGroup”, “Resources”: “arn:aws:logs:*:*:*”; }
  21. 21. Hello World Memory and Performance ● CPU scales with memory ● More memory, more $$$ ● Up to 1.5 GB Gigabytes of RAM
  22. 22. Hello World Logs ● Automatically collected and stored ● Searchable ● Timestamped automatically
  23. 23. Lab: Lambda and S3
  24. 24. Lab Overview ● AWS CLI Introduction ● Create function ● Deploy version 1 ● Testing and debugging ● Deploy version 2 ● Output and timeouts
  25. 25. AWS CLI
  26. 26. https://docs.aws.amazon.com/cli/latest/us erguide/installing.html
  27. 27. Lab S3 Bucket ● Simple Storage Service ● Bucket names are global ● Upload files
  28. 28. Lab Lambda function ● Skip the blueprint ● Choose our role ● Test run!
  29. 29. http://bit.ly/aws-cloud-conf

×