Softwr

Developer Tools · head to head

AWS CodePipeline vs AWS Serverless Application Model (AWS SAM)

AWS CodePipeline logo

AWS CodePipeline

Developer Tools

Managed release pipelines on AWS billed per active pipeline or per action minute

From
$0.002/minute
Free plan
No
AWS Serverless Application Model (AWS SAM) logo

AWS Serverless Application Model (AWS SAM)

Developer Tools

Open-source framework and CLI for building serverless apps on AWS

From
Free
Free plan
Yes

The short version

  • AWS Serverless Application Model (AWS SAM) is free; AWS CodePipeline starts at $0.002/mo.
  • Only AWS CodePipeline lists stages and actions; only AWS Serverless Application Model (AWS SAM) lists SAM connectors for IAM permissions.
  • Where AWS CodePipeline falls short: it orchestrates but does not build, so you pay for CodeBuild or another build service on top of the pipeline charge.
  • Where AWS Serverless Application Model (AWS SAM) falls short: targets AWS only, so templates are not portable to other cloud providers.

How do AWS CodePipeline and AWS Serverless Application Model (AWS SAM) differ?

AWS CodePipeline and AWS Serverless Application Model (AWS SAM) differ on starting price ($0.002/minute against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS CodePipeline and AWS Serverless Application Model (AWS SAM) actually diverge.

Attributes where AWS CodePipeline and AWS Serverless Application Model (AWS SAM) differ
AttributeAWS CodePipelineAWS Serverless Application Model (AWS SAM)
Starting price$0.002/minuteFree
Pricing modelPer active pipeline or per action execution minuteOpen-source
Free tierNoYes
PlatformsWebWindows, macOS, Linux

Not yet recorded: category for AWS CodePipeline.

Which features does each one have?

They share no listed features; 6 appear only for AWS CodePipeline and 7 only for AWS Serverless Application Model (AWS SAM). Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in AWS CodePipeline

  • Stages and actions
  • V2 pipeline type
  • Manual approvals
  • Cross-account deploys
  • Third-party actions
  • Execution history

Only in AWS Serverless Application Model (AWS SAM)

  • SAM template shorthand for CloudFormation
  • SAM CLI project scaffolding with sam init
  • Local testing of Lambda functions and API endpoints
  • sam sync for syncing local changes to the cloud
  • SAM connectors for IAM permissions
  • Terraform project debugging support
  • CI/CD pipeline support

What is each one used for?

AWS CodePipeline is most often brought in for teams that want IAM-controlled pipelines without hosting Jenkins; AWS Serverless Application Model (AWS SAM) for defining Lambda and API Gateway applications as code. The jobs each tool is most often brought in to do.

AWS CodePipeline

  • Delivering a CloudFormation or CDK application from commit to production inside one AWS organisationnot AWS Serverless Application Model (AWS SAM)
  • Running staged deployments with manual approval gates across several AWS accountsnot AWS Serverless Application Model (AWS SAM)
  • Teams that want IAM-controlled pipelines without hosting Jenkinsnot AWS Serverless Application Model (AWS SAM)
  • Orchestrating CodeBuild, Lambda and ECS deploys in one visual workflownot AWS Serverless Application Model (AWS SAM)

AWS Serverless Application Model (AWS SAM)

  • Defining Lambda and API Gateway applications as codenot AWS CodePipeline
  • Testing Lambda functions locally before deploymentnot AWS CodePipeline
  • Building CI/CD pipelines for serverless appsnot AWS CodePipeline
  • Converting console-created resources into templatesnot AWS CodePipeline

Where do AWS CodePipeline and AWS Serverless Application Model (AWS SAM) fall short?

AWS CodePipeline's most cited limit: it orchestrates but does not build, so you pay for CodeBuild or another build service on top of the pipeline charge. AWS Serverless Application Model (AWS SAM)'s: targets AWS only, so templates are not portable to other cloud providers. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS CodePipeline

  • It orchestrates but does not build, so you pay for CodeBuild or another build service on top of the pipeline charge
  • The workflow definition is more rigid than YAML-in-repo tools like GitHub Actions or GitLab CI, and complex branching logic often needs custom Lambda actions
  • Pipelines run in a single Region, and cross-Region or cross-account deployment needs artefact buckets and role setup that teams often get wrong
  • V2 billing per action minute includes time spent waiting on approval or external actions, which makes long-running actions costlier than they appear
  • Third-party ecosystem and community examples are smaller, so integrating non-AWS tooling takes more custom work

AWS Serverless Application Model (AWS SAM)

  • Targets AWS only, so templates are not portable to other cloud providers
  • Local testing of functions depends on Docker being installed and running
  • Requires an AWS account, the AWS CLI and configured credentials before first use
  • Declarative templates, so complex logic needs CloudFormation or the AWS CDK instead
  • Does not cover non-serverless infrastructure on its own, which falls back to CloudFormation

How much do AWS CodePipeline and AWS Serverless Application Model (AWS SAM) cost?

AWS CodePipeline starts at $0.002/mo; AWS Serverless Application Model (AWS SAM) is free to use. Plan by plan below, from each vendor's own pricing page.

AWS CodePipeline

$0.002/minute
  • V1 pipeline$1/mo
    • $1.00 per active pipeline per month
    • One free active pipeline per month
    • No charge for pipelines with no code changes in the month
  • V2 pipeline$0.002/minute
    • $0.002 per action execution minute, rounded up per action
    • 100 free action execution minutes per month across the account

AWS Serverless Application Model (AWS SAM)

Free

No published plan breakdown. See the AWS Serverless Application Model (AWS SAM) review.

Which should you pick?

Choose AWS CodePipeline if

  • You need stages and actions.
  • You also want v2 pipeline type.

Choose AWS Serverless Application Model (AWS SAM) if

  • You need sam template shorthand for cloudformation.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want sam cli project scaffolding with sam init.

Questions people ask

Is AWS CodePipeline or AWS Serverless Application Model (AWS SAM) better?
It depends on the job. AWS CodePipeline fits delivering a CloudFormation or CDK application from commit to production inside one AWS organisation; AWS Serverless Application Model (AWS SAM) fits defining Lambda and API Gateway applications as code. AWS CodePipeline starts at $0.002/minute and AWS Serverless Application Model (AWS SAM) at Free.
Which is cheaper, AWS CodePipeline or AWS Serverless Application Model (AWS SAM)?
AWS Serverless Application Model (AWS SAM) has a free tier; the other does not. Paid plans start at $0.002/minute for AWS CodePipeline and Free for AWS Serverless Application Model (AWS SAM).
Does AWS CodePipeline or AWS Serverless Application Model (AWS SAM) run on more platforms?
AWS CodePipeline runs on Web. AWS Serverless Application Model (AWS SAM) runs on Windows, macOS, Linux.
Can I use AWS Serverless Application Model (AWS SAM) for free?
Yes. AWS Serverless Application Model (AWS SAM) has a free tier, so you can try it without paying. AWS CodePipeline starts at $0.002/minute.
What is AWS CodePipeline best used for?
AWS CodePipeline is most often used for delivering a cloudformation or cdk application from commit to production inside one aws organisation, running staged deployments with manual approval gates across several aws accounts, teams that want iam-controlled pipelines without hosting jenkins, orchestrating codebuild, lambda and ecs deploys in one visual workflow. Of those, delivering a cloudformation or cdk application from commit to production inside one aws organisation and running staged deployments with manual approval gates across several aws accounts are not what AWS Serverless Application Model (AWS SAM) is typically brought in for.
What can AWS CodePipeline do that AWS Serverless Application Model (AWS SAM) cannot?
AWS CodePipeline covers Stages and actions, V2 pipeline type, Manual approvals, Cross-account deploys. AWS Serverless Application Model (AWS SAM) covers SAM template shorthand for CloudFormation, SAM CLI project scaffolding with sam init, Local testing of Lambda functions and API endpoints, sam sync for syncing local changes to the cloud.

Answered from the vendors’ own pages

AWS CodePipeline: How much does CodePipeline cost?

V1 pipelines are $1.00 per active pipeline per month; V2 pipelines are $0.002 per action execution minute, per AWS. One V1 pipeline or 100 V2 minutes per month are free.

AWS Serverless Application Model (AWS SAM): What is AWS SAM?

AWS SAM is an open-source framework for building serverless applications with infrastructure as code. It consists of a template syntax that extends CloudFormation and a command-line tool.

Source
AWS CodePipeline: What is the difference between V1 and V2 pipelines?

V1 is flat per active pipeline. V2 adds pipeline variables, more trigger options and per-minute billing.

AWS Serverless Application Model (AWS SAM): Which operating systems does the SAM CLI support?

AWS publishes installers for Linux on x86_64 and arm64, macOS on Intel and Apple silicon, and a 64-bit Windows MSI. macOS versions older than 13.x are not supported.

Source
AWS CodePipeline: Does CodePipeline run my builds?

No. It calls CodeBuild, Jenkins or another action provider, which is billed separately.

AWS Serverless Application Model (AWS SAM): What licence does AWS SAM use?

The serverless-application-model repository on GitHub is licensed under Apache-2.0.

Source
AWS Serverless Application Model (AWS SAM): How does SAM differ from the AWS CDK?

The documentation says to use SAM instead of the CDK if you prefer a declarative approach to describing infrastructure rather than a programmatic one. The two can also be combined, using the SAM CLI's local testing with CDK applications.

Source
Share

Related pages

Other head to heads