AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Upload AWS Lambda Function Dialog

The Upload Lambda Function dialog will create a Lambda function and upload your code to be run when the Lambda function is invoked.

Launching the dialog#

The Upload Lambda Function dialog can be launched in the following ways:

  • by opening the context menu for your AWS Lambda Java Project in Eclipse's Project Explorer view, and selecting Amazon Web Services > Upload function to AWS Lambda....
  • by opening the context menu in the code window for your Java class and selecting AWS Lambda > Upload function to AWS Lambda....

The Upload Function dialog contains two screens:

Select Target Lambda Function user interface#

Select AWS Region

Required. Select the region where your Lambda function will be created.

Default: the default AWS Management Console region for your AWS account.

Select or create a Lambda function

Required. You must choose whether to use an existing Lambda function from the drop-down list, or to create a new one by entering its name.

Default: Create a new Java function

When you click Finish, control proceeds to the Configure Function screen.

Configure Function user interface#


The screen is divided into four sections, each with its own settings.

Basic Settings#

This section shows the function name and allows you to add a text description.

Immutable. The name is determined by the name chosen during the Select Target Lambda Function screen. It can not be modified here, though you can click Back to re-enter it on the previous screen.

Optional. A text description of the function.

Default: the description is empty.

Function Execution#

This section allows you to modify the execution environment for the function.


Required. The Java class that contains your Lambda function code.

Default: the package and class name from your project are automatically selected for you.

IAM Role

Required. The role that Lambda will use to access your AWS resources during the execution of your function. You must make sure that this role provides access for AWS Lambda to at least Amazon S3, but if your function uses any other AWS resources, you must also provide access to each of the services used.

Default: the first IAM role from your AWS account.

S3 Bucket for Function Code#

This section allows you to set an S3 bucket used by your Lambda function.

S3 Bucket
Required. An Amazon S3 bucket that can be used by your function's code. Only buckets that are in the same region that you will run the function in will be displayed here.

Advanced Settings#

This section contains settings that are less often used, they provide further control over your function's execution environment than the settings in the Function Execution section.

Memory (MB)

Required. The number of megabytes of memory available to your lambda function.

Default: 512 MB

Timeout (s)

Required. The timeout, in seconds, after which the function will be considered to have failed if it has finished execution.

Default: 15 s.