Update the Lambda@Edge function with new bot patterns and propagate to all CloudFront distributions
lambda_code.js and want to deploy the changes to all customer domains.
Common reasons to update:
lambda_code.js:1 → :2)| Step | Duration |
|---|---|
| Lambda upload | ~5 seconds |
| Version publish | ~5 seconds |
| Distribution updates | ~1 minute per 100 distributions |
| Total for 1,000 distributions | ~15 minutes |
X-API-Key header:
| Field | Type | Description |
|---|---|---|
| status | string | success or error |
| lambda_arn | string | New Lambda version ARN |
| distributions.total | number | Total distributions to update |
| distributions.successful | number | Successfully updated |
| distributions.failed | number | Failed to update |
| distributions.failed_details | array | Details of any failures |
Backend/src/app/domain/setup_proxy/step_0_lambda_setup/lambda_code.js: