aws AWS What's New ·

AWS SAM CLI adds CloudFormation Language Extensions support

infraawsengineeraws-lambdaaws-dynamodbaws-sns
feature

AWS SAM CLI now supports AWS CloudFormation Language Extensions, allowing developers to reduce duplication in their infrastructure as code templates while maintaining local development workflows. This feature enables defining resources once and iterating locally, accelerating serverless development by catching errors before cloud deployment. The update processes Language Extensions in memory for local operations, benefiting developers who frequently define similar resources.

  • Support for AWS CloudFormation Language Extensions
  • Accelerated local serverless development
  • How to use Language Extensions with SAM CLI
  • Expanded Language Extensions capabilities
Features (1)
  • Support for AWS CloudFormation Language Extensions

    AWS SAM CLI now supports AWS CloudFormation Language Extensions, allowing developers to reduce template duplication and maintain a full local development workflow. This enables defining resources once and testing them locally across all SAM CLI commands before cloud deployment.

Enhancements (2)
  • Accelerated local serverless development

    This feature accelerates serverless development by letting developers define resources once and iterate locally without waiting for cloud deployments. It shortens iteration cycles and reduces time spent debugging failed deployments in the cloud by catching errors like invalid syntax or missing dependencies early.

  • Expanded Language Extensions capabilities

    SAM CLI supports additional Language Extensions features including Fn::Length, Fn::ToJsonString, Fn::FindInMap with DefaultValue, and conditional DeletionPolicy and UpdateReplacePolicy attributes.

Notes (1)
  • How to use Language Extensions with SAM CLI

    To use this feature, download or update SAM CLI to the latest version, add the AWS::LanguageExtensions transform to your SAM template, and use Fn::ForEach to generate multiple resources. SAM CLI commands will automatically expand loops and process generated resources, allowing invocation by expanded function name.

Read the original announcement →

https://aws.amazon.com/about-aws/whats-new/2026/05/aws-sam-cli-cloudformation/

Related releases