Skip to Content
Learn AWS Serverless Computing
book

Learn AWS Serverless Computing

by Scott Patterson
December 2019
Intermediate to advanced
382 pages
9h 43m
English
Packt Publishing
Content preview from Learn AWS Serverless Computing

Hello, world! using the command line

That was fun let's do another one! However, in this section, we're not going to touch a browser at all. Instead, we'll be running commands in a bash Terminal using the AWS CLI. This is a less wizard-like method and I think you'll find it much easier. In this example, we're going to use Node.js. Let's get started:

  1. First, let's write some function code in our favorite IDE:
Creating a Lambda function in Visual Studio Code

This is as simple as it gets the function will return a message and the event that was originally passed in when invoked.

  1. Zip up the function, ready for deployment:
zip helloworld.zip ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Amazon EC2, SQS, Kinesis, and S3: A Hands-On Approach to AWS

Practical Amazon EC2, SQS, Kinesis, and S3: A Hands-On Approach to AWS

Sunil Gulabani

Publisher Resources

ISBN: 9781789958355