Skip to content

Latest commit

 

History

History
 
 

aws-lambda

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

AWS Lambda

AWS Lambda Serverless Component

Input Types

Name Type Description
memory number
required
The functions memory size in Megabyte
timeout number
required
The function execution time at which Lambda should terminate the function
runtime string
required
Runtime for the function.
Possible values are java8, nodejs6.10, nodejs8.10, python2.7, python3.6 and dotnetcore1.0
handler string
required
The path to the exported handler function
name string The Lambda function name
description string A short, user-defined function description.
Lambda does not use this value. Assign a meaningful description as you see fit
root string Path to source code
role object The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
when it executes your function to access any other Amazon Web Services (AWS) resources
env object Lambda functions environment's configuration settings

Output Types

Name Type Description
arn string The Lambda functions arn
roleArn string The arn of the created / managed role the Lambda function uses

Example

type: my-application
components:
  myAwsLambda:
    type: aws-lambda
    inputs:
      memory: 512
      timeout: 3
      runtime: nodejs8.10
      handler: products.create
      name: 'myProject-functionName-${self.instanceId}'
      description: The function that does XYZ to ABC
      root: '${self.path}/code'
      env:
        foo: true
        tableName: 'products-${self.serviceId}'