New
4.31.1
Features
Serverless Framework
- Added custom User-Agent header for AWS SDK requests. The framework now includes
serverless-framework/<version>in the User-Agent header for all AWS SDK v3 API calls, improving request identification and diagnostics. (#13279, https://github.com/serverless/serverless/issues/13245)
Bug Fixes
Serverless Framework
- Fixed Lambda destinations error with per-function IAM roles. Resolved a
TypeErrorthat occurred when using Lambda destinations (onSuccess/onFailure) whileprovider.iam.role.mode: perFunctionwas enabled. The framework now correctly applies the required destination permissions to each function's individual IAM role. (#13293, #13292) - Fixed custom domain security policy validation. Improved support for enhanced AWS security policies, specifically enabling TLS 1.3 policies like
SecurityPolicy_TLS13_2025_EDGE. Legacy shorthand values (tls_1_0,tls_1_2) remain supported, while invalidtls_1_3was removed. (#13294, #13290)