sam local processing of AWS::LanguageExtensions is opt-in
Introduced 2026-05-22 · score 0.92
HOW TO USE IT
When a template uses `AWS::LanguageExtensions` and you want SAM to process it locally, pass `--language-extensions` on that command; local processing is off by default and the choice applies per invocation.
sam local invoke <FunctionLogicalId> --language-extensionsWHY THIS HELPS
When locally processing a template that uses AWS::LanguageExtensions, enable local processing if you need it.
REQUIREMENTS AND LIMITATIONS
- Version: v1.161.0
- --language-extensions: Opts in to local processing of `AWS::LanguageExtensions` for this command invocation.
- <FunctionLogicalId>: Function resource logical ID to invoke; required when the template defines multiple functions.
- Prerequisite: Install the AWS SAM CLI and meet the AWS SAM prerequisites to use `sam local invoke`.
- Prerequisite: The template must list `AWS::LanguageExtensions` in `Transform` before `AWS::Serverless-2016-10-31` for SAM to detect and locally expand it.
FIRST-PARTY EVIDENCE
- https://github.com/aws/aws-sam-cli/releases/tag/v1.161.0
- https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-language-extensions.html
- https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-local-invoke.html
- https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/using-sam-cli-local-invoke.html
Check the installed version and the source before using it. Entry JSON