Home icon

AWS SAM CLI adds BuildKit support for AWS Lambda functions packaged as container images

News



This article announces BuildKit support in AWS SAM CLI for building Lambda container images more efficiently.

  • SAM CLI now supports BuildKit for faster, more efficient container image builds
  • Enables multi-stage builds to create smaller images without development dependencies
  • Improved caching reduces rebuild times and better parallelizes build steps
  • Supports cross-architecture builds for x86_64 and arm64 (AWS Graviton2) architectures
  • Docker secrets support keeps sensitive data out of final image layers
  • Use --use-buildkit flag with sam build command in version 1.159.0 or later
  • Works with both Docker and Finch

BuildKit support in SAM CLI enables developers to optimize Lambda container images with advanced build features for production deployments.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

May 18
2026
AWS SAM CLI adds AWS CloudFormation Language Extensions support to accelerate local serverless development
Nov 15
2022
AWS SAM CLI introduces Terraform support for AWS Lambda local testing and debugging
Oct 15
2025
AWS SAM CLI adds Finch support, expanding local development tool options for serverless applications
Nov 17
2025
Announcing EC2 Image Builder support for Lambda and Step functions

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.