sam init
and select Hello World Example
as below:
sam deploy --guided
.
You can run your function locally with sam local invoke
You can also test your function using AWS console. In your AWS Lambda section,
click on your function. Scroll down to the code sections and click on the Test
button on the top right.