Hands-On Chatbot Development with Alexa Skills and Amazon Lex
上QQ阅读APP看书,第一时间看更新

Creating a Lambda

AWS Lambda functions are incredible! They’re functions that are hosted on AWS that can be triggered in many different ways. Lambda functions are serverless, which means that you don't need to run a server to use them. This makes it a lot quicker and easier to set up and use.

One of the best parts of AWS Lambdas is that you only pay for the time the Lambda function is running. Got something that only runs once an hour and only takes two seconds? You’ll only be charged for 48 seconds a day! That’s insane compared to running a 24/7 AWS EC2 server or your own private server.

Today, we’ll create a Lambda function and look at the three best ways to work with the code.

Once you’ve got your AWS account set up, there are a few ways to create a new Lambda function. We’re going to start by using the AWS Console.