课程: AWS for Developers: Data-Driven Serverless Applications with Kinesis
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Get started with the project - Amazon Web Services (AWS)教程
课程: AWS for Developers: Data-Driven Serverless Applications with Kinesis
Get started with the project
- [Instructor] In this video, you are going to create the AWS SAM project you will be working during the whole lab. At the end, you will also deploy this project to the cloud. But first, let's create a new SAM project. For that, you're going to create a new directory, and inside that directory, you will create a new file called template.yml. I already have a new directory, you can see here it's empty, and I will create a new file called template.yml. I'm using Visual Studio Code. This is how it looks. And inside the template.yml, I'm going to define first that this is a SAM file, and then I'm going to create my first Lambda function. So this is how it looks. To create the Lambda function using SAM, you need to put it under the Resource attribute, then put a name for the function, in this case, MyFunction. Then give a type to that resource, in this case, it's AWS::Serverless::Function, this is a SAM function specific, and…