Deploying and Testing AWS Lambda Functions

Now you know how to create a Lambda function using Eclipse, we are going to deploy and test our function.

First, we will set up our Eclipse IDE with AWS credentials so that we can access AWS from within Eclipse. Then we will deploy and run our Lambda function from within Eclipse. And, last but not least, we will take a look at the Lambda function on our AWS Management Console.

Go back to the Eclipse IDE. The first thing that we need to check before we can upload and run our Lambda function is if Eclipse has access credentials to access AWS. So, open the Preferences and you can see on the left-hand side there is an item for AWS Toolkit, as shown in the following screenshot:

As you can see in the ...

Get AWS Lambda Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.