Lambda Deploy
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
| Parameter | Type | Description |
|---|---|---|
function_name | string | Lambda function name or ARN. |
Optional Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
account_id | string | - | AWS account ID. Defaults to stage account. |
region | string | - | AWS region. Defaults to stage region. |
s3_bucket | string | - | S3 bucket containing the deployment package. |
s3_key | string | - | S3 key of the deployment package. |
image_url | string | - | Docker image URI for container-based Lambda. |
timeout | integer | 10 | Deployment 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