qmetrics.net

AWS SAM CLI

CLI for building and deploying AWS serverless applications

AWS SAM CLI screenshot

Open-source command-line tool for developing serverless apps with AWS SAM: scaffold projects, build Lambdas, test locally, sync to AWS, and deploy CloudFormation stacks.

Overview

The AWS Serverless Application Model CLI is a command-line companion for serverless work on AWS. It targets applications built from Lambda functions, API Gateway, Step Functions, EventBridge, queues, topics, and related resources defined in SAM or CloudFormation templates.

`sam init` scaffolds new projects from AWS infrastructure templates. `sam build` compiles and packages functions, including zip and container image Lambdas with custom Makefile workflows. `sam local` runs Lambdas and API Gateway behaviors in Docker on your machine for SAM and CDK apps.

`sam sync` pushes iterative changes to a developer account in the cloud, and `sam deploy` applies templates to AWS. `sam pipeline init` helps generate CI/CD pipeline skeletons for common systems. `sam logs` and `sam traces` tail CloudWatch logs and X-Ray traces from the terminal.

SAM templates are a shorthand for infrastructure as code that deploy through CloudFormation. The CLI also integrates with CDK and Terraform workflows for local debugging described in AWS documentation, so one tool can sit in a broader serverless toolchain.

Key features

  • Project scaffolding with sam init
  • Build and package Lambda artifacts
  • Local Lambda and API in Docker
  • Deploy SAM and CloudFormation stacks
  • sam sync for cloud iteration
  • CI/CD pipeline template generation
  • CloudWatch log and X-Ray tailing
  • CDK and Terraform local testing hooks

Use cases

  • Building serverless web APIs
  • Local Lambda debugging before deploy
  • Rapid cloud sync during development
  • Automated serverless delivery pipelines
  • Hello-world to production SAM apps

Tags

Similar software

Coolify

Self-hostable PaaS for apps, databases, and one-click services

Coolify deploys static sites, databases, and full-stack apps on servers you control, with a dashboard similar to managed hosting platforms. Configurations stay on your machines over SSH.

★ 66.7k⟳ todayApache-2.0
Build & DeploymentSelf-hostable
Open Source Alternative to:HerokuNetlify+3

Dokploy

Self-hostable PaaS for apps and databases

Dokploy is a self-hostable platform-as-a-service for deploying applications and databases on your own VPS. It supports Docker, Compose, multi-server setups, backups, and monitoring.

★ 38.7k⟳ yesterdayApache-2.0
Build & DeploymentSelf-hostable
Open Source Alternative to:HerokuNetlify+3

Dokku

Docker-powered mini PaaS on your own hardware

Dokku is a small platform-as-a-service you install on a Linux VM. You push Git-based, Heroku-style apps that build with buildpacks and run in Docker containers.

★ 32.2k⟳ yesterdayMIT
Build & DeploymentSelf-hostable
Open Source Alternative to:HerokuNetlify+3

Colima

Minimal container runtimes on macOS and Linux

Colima launches Lima-based VMs with Docker, containerd, Kubernetes, or Incus so you can run containers locally on Mac or Linux with simple defaults and port forwarding.

★ 31.9k⟳ 1 month agoMIT
Build & DeploymentDesktop/CLI app
Open Source Alternative to:Docker Desktop

OpenTofu

Open-source infrastructure as code engine

OpenTofu is an open-source tool for building, changing, and versioning infrastructure safely. It manages popular cloud providers and custom in-house systems using declarative configuration.

★ 31k⟳ todayMPL-2.0
Build & DeploymentDesktop/CLI app
Open Source Alternative to:Terraform

Pulumi

Open-source infrastructure as code with familiar programming languages

Pulumi provisions and manages cloud resources through programs written in TypeScript, Python, Go, Java, and other languages. A CLI deploys stacks to AWS, Azure, Google Cloud, Kubernetes, and hundreds of providers.

★ 26k⟳ yesterdayApache-2.0
Build & DeploymentDesktop/CLI app
Open Source Alternative to:Terraform