Create Function dialog box - AWS Toolkit for JetBrains

Create Function dialog box

The Create Function dialog box in the AWS Toolkit for JetBrains is displayed when you create a standalone AWS Lambda function.

Create Function dialog box.

The Create Function dialog box contains the following items:

Name

(Required) The function's name. This can contain only the uppercase letters A through Z, the lowercase letters a through z, the numbers 0 through 9, hyphens (-), and underscores (_). The name must be less than 64 characters in length.

Description

(Optional) Any meaningful description about the function.

Handler

(Required) The ID of the corresponding function handler for Java, Python, Node.js, or C#.

Runtime

(Required) The ID of the Lambda runtime to use.

Timeout (seconds)

(Required) The amount of time that Lambda allows a function to run before stopping it. Specify an amount up to 900 seconds (15 minutes).

Memory (MB)

(Required) The amount of memory available to the function as it runs. Specify an amount between 128 MB and 3,008 MB in 64-MB increments.

Environment Variables

(Optional) Any environment variables for the Lambda function to use, specified as key-value pairs. To add, change, or delete environment variables, choose the folder icon, and then follow the on-screen instructions.

IAM Role

(Required) Choose an available Lambda execution role in the connected AWS account for Lambda to use for the function. To create an execution role in the account and have Lambda use that role instead, choose Create, and then follow the on-screen instructions.

Enable AWS X-Ray

(Optional) If selected, Lambda enables AWS X-Ray to detect, analyze, and optimize performance issues with the function. X-Ray collects metadata from Lambda and any upstream or downstream services that make up your function. X-Ray uses this metadata to generate a detailed service graph that shows performance bottlenecks, latency spikes, and other issues that impact function performance.

Source Bucket

(Required) Choose an available Amazon Simple Storage Service (Amazon S3) bucket in the connected AWS account for the AWS Serverless Application Model (AWS SAM) command line interface (CLI) to use to deploy the function to Lambda. To create an Amazon S3 bucket in the account and have the AWS SAM CLI use that one instead, choose Create, and then follow the on-screen instructions.