Wondering how you can start your first serverless API in no time? This deck will show you how, along with the demo and also source code available on Github. Deck, demo and source code was prepared for AWS User Group meetup in Bandung, Indonesia.
rights reserved. Amazon Confidential and Trademark > hello, world Donnie Prakoso, MSc Technical Evangelist, AWS @donnieprakoso donnieprakoso • Speak in Go and Python • Container, Machine Learning and Serverless • I AWS User Groups • Temennya Petra, Aswin, dan semua developers
rights reserved. Amazon Confidential and Trademark What We Are Going to Discuss • What really happen behind “Let’s Build an App!” • Setting foundation of serverless paradigm • Serverless is bigger than FaaS • Introducing AWS SAM • Creating your first API • Thank you!
rights reserved. Amazon Confidential and Trademark Serverless Applications Services (anything) Changes in data state Requests to endpoints Changes in resource state Event source Lambda function Node.js Python Java C# Go
rights reserved. Amazon Confidential and Trademark sam init sam local start-api sam package sam validate sam deploy sam logs 1 Create project 2 Test locally 3 Validate template 4 Package into CF 5 Deploy 6 Check the logs Development Deployment Monitoring
rights reserved. Amazon Confidential and Trademark Lambda execution model Synchronous (push) Asynchronous (event) Stream-based Amazon API Gateway AWS Lambda function Amazon DynamoDB Amazon SNS /order AWS Lambda function Amazon S3 reqs Amazon Kinesis changes AWS Lambda service function
rights reserved. Amazon Confidential and Trademark In Summary • Serverless is not only the underlying technology but also a paradigm • AWS SAM helps you to kickstart your project • Start with defining your resources. Start small. • Automate resources creation, packaging and deployment • Centralized monitoring tool