AWS Lambda 2026-08-30
Last reviewed Oct 26, 2026
Prompt Details
Prompt Composition
1prompt
- AWS Lambda 2026-08-30137 lines · 5.3K tokens
CWE Coverage
- 20
- 22
- 94
- 117
- 209
- 250
- 287
- 295
- 306
- 311
- 319
- 336
- 347
- 362
- 367
- 441
- 494
- 502
- 532
- 613
- 636
- 639
- 674
- 732
- 770
- 772
- 807
- 829
- 862
- 863
- 918
- 922
- 942
- 1395
Prompt Preview
Use these rules for AWS Lambda Event Functions, including default compute, Managed Instances, and durable functions where supported. The 2026-08-30 identifier is the retained snapshot name; this guidance is maintained against current service behavior. Lambda Web Functions and Lambda MicroVMs have separate APIs and are not covered here. Apply the relevant language and framework security guidance alongside these rules. Treat each trigger, execution role, event payload, warm environment, and downstream service as a distinct trust boundary.
Execution identity
- Assign a dedicated execution role to each trust boundary and grant only required actions and resources.
- Trust
lambda.amazonaws.comto assume the execution role; do not add unrelated principals or self-assumption unless the application requires it. - Use resource ARNs and IAM conditions to constrain accounts, regions, prefixes, tags, source ARNs, and source accounts.
- Keep deployment, execution, administration, and break-glass roles separate.
- Restrict deployer
iam:PassRoleto exact role ARNs plusiam:PassedToService=lambda.amazonaws.com; the condition alone cannot restrict roles. Forbid deployerAWSLambda_FullAccess: itslambda:*/any-role passing permits function creation/updates executing with any passed role. - Treat
lambda:CreateFunction,lambda:UpdateFunctionCode,lambda:UpdateFunctionConfigurationas execution-role code execution: layers andAWS_LAMBDA_EXEC_WRAPPER,NODE_OPTIONS,JAVA_TOOL_OPTIONS,DOTNET_STARTUP_HOOKSload startup code. Grant only to pipelines for owned