Close|CloudStack Canvas · How-To Guide
How-To Fix

Upload a Lambda Deployment Package to S3

For real deployments, Lambda code comes from a ZIP file stored in S3 (for Zip packages) or a container image in ECR. Set "s3Bucket" and "s3Key" to point to your ZIP file. The S3 bucket must be in the same region as the Lambda function.

Paste into this field

Lambda → s3Bucket and s3Key

Output looks like

s3Bucket: my-lambda-zips s3Key: my-function/v1.0.0.zip

1Create a deployment bucket (if needed)

Navigate to S3 → "Create bucket". Name it something like my-app-lambda-zips. Choose the same region as your Lambda. Leave defaults and create.

3Build and zip your code

Node.js example:

npm ci --production
zip -r function.zip index.js node_modules/

Python example:

pip install -r requirements.txt -t package/
cd package && zip -r ../function.zip . && cd ..
zip function.zip app.py

8Upload to S3

In S3, click your bucket → Upload → drag the ZIP file in → Upload.

10Note the key

The "key" is the path inside the bucket (e.g. my-function/function.zip or just function.zip if uploaded to the root).

12Paste into CloudStack Canvas

Select your Lambda node → "Code S3 Bucket" = bucket name (e.g. my-app-lambda-zips), "Code S3 Key" = object key (e.g. my-function/function.zip).

Once you have the value, go back to CloudStack Canvas and paste it into the highlighted field.

CloudStack Canvas · Validation Guide

Upload a Lambda Deployment Package to S3 — CloudStack Canvas