Let’s use the CLI to create our new serverless application.
What we will be creating is an API Gateway and a Lambda function that will return a response.
sam init
.1
for 1 - AWS Quick Start Templates.1
for 1 - Zip (artifact is a zip uploaded to S3).1
for 1 - nodejs14.x.api
for Project name.
It will now download the Quick Start templates from GitHub.1
for 1 - Hello World Example.Let’s look at the directory structure on the left hand side file navigation pane.