Skip to main content

Lambda Deploy

Stable

Type: DEVRAMPS:LAMBDA:DEPLOY

Category: deploy

Version: 1.0.0


Description

Deploy code to an AWS Lambda function from an S3 bundle or Docker image.

Deploys new code to an AWS Lambda function. Supports two deployment modes: S3 bundle deployment (using s3_bucket and s3_key) or container image deployment (using image_url). After updating the function code, the step polls until the function reaches an Active state. Exactly one of S3 or image deployment must be configured.

Parameters

Required Parameters

ParameterTypeDescription
function_namestringLambda function name or ARN.

Optional Parameters

ParameterTypeDefaultDescription
account_idstring-AWS account ID. Defaults to stage account.
regionstring-AWS region. Defaults to stage region.
s3_bucketstring-S3 bucket containing the deployment package.
s3_keystring-S3 key of the deployment package.
image_urlstring-Docker image URI for container-based Lambda.
timeoutinteger10Deployment timeout in minutes.

Example Usage

- type: DEVRAMPS:LAMBDA:DEPLOY
name: Deploy API Lambda
params:
function_name: my-api-function
s3_bucket: my-deployment-bucket
s3_key: "${{ stage.artifacts[\"API Bundle\"].s3_key }}"
timeout: 10