Softwr

Software · head to head

AWS CloudFormation vs AWS CodePipeline

AWS CloudFormation logo

AWS CloudFormation

Software

Declarative infrastructure as code for AWS, free for AWS resources

From
Free
Free plan
Yes
AWS CodePipeline logo

AWS CodePipeline

Software

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

From
$0.002/minute
Free plan
No

The short version

  • AWS CloudFormation is free; AWS CodePipeline starts at $0.002/mo.
  • Only AWS CloudFormation lists stacks and templates; only AWS CodePipeline lists stages and actions.
  • Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
  • 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.

How do AWS CloudFormation and AWS CodePipeline differ?

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

Attributes where AWS CloudFormation and AWS CodePipeline differ
AttributeAWS CloudFormationAWS CodePipeline
Starting priceFree$0.002/minute
Pricing modelNo charge for AWS resource types; extensions per handler operationPer active pipeline or per action execution minute
Free tierYesNo
PlatformsWeb, Linux, macOS, WindowsWeb

Which features does each one have?

They share no listed features; 6 appear only for AWS CloudFormation and 6 only for AWS CodePipeline. 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 CloudFormation

  • Stacks and templates
  • Change sets
  • Drift detection
  • StackSets
  • Rollback
  • Registry extensions

Only in AWS CodePipeline

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

What is each one used for?

AWS CloudFormation is most often brought in for recreating identical dev, staging and production environments on AWS; AWS CodePipeline for teams that want IAM-controlled pipelines without hosting Jenkins. The jobs each tool is most often brought in to do.

AWS CloudFormation

  • Recreating identical dev, staging and production environments on AWSnot AWS CodePipeline
  • Deploying one baseline of security resources across many accounts with StackSetsnot AWS CodePipeline
  • Serverless applications packaged with AWS SAMnot AWS CodePipeline
  • Previewing and auditing infrastructure changes through change setsnot AWS CodePipeline

AWS CodePipeline

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

Where do AWS CloudFormation and AWS CodePipeline fall short?

AWS CloudFormation's most cited limit: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it. AWS CodePipeline's: it orchestrates but does not build, so you pay for CodeBuild or another build service on top of the pipeline charge. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS CloudFormation

  • It only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it
  • Raw templates are verbose and hard to reuse, which is why many teams add CDK on top
  • A failed update can leave a stack in a stuck state such as UPDATE_ROLLBACK_FAILED that needs manual intervention
  • New AWS features sometimes arrive in CloudFormation after the console and API, so you wait or script around the gap
  • Deleting a stack deletes its resources, so a mistaken delete of a stack with data needs DeletionPolicy discipline

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

How much do AWS CloudFormation and AWS CodePipeline cost?

AWS CloudFormation is free to use; AWS CodePipeline starts at $0.002/mo. Plan by plan below, from each vendor's own pricing page.

AWS CloudFormation

Free
  • AWS resource typesFree
    • No additional charge for using CloudFormation with AWS resources
    • You pay for the resources the stack creates
  • Third-party extensionsOn request
    • $0.0009 per handler operation, first 1,000 per month free
    • $0.00008 per second of handler duration beyond 30 seconds

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

Which should you pick?

Choose AWS CloudFormation if

  • You need stacks and templates.
  • You want to start without paying.
  • You work on Web, Linux, macOS, Windows.
  • You also want change sets.

Choose AWS CodePipeline if

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

Questions people ask

Is AWS CloudFormation or AWS CodePipeline better?
It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; AWS CodePipeline fits delivering a CloudFormation or CDK application from commit to production inside one AWS organisation. AWS CloudFormation starts at Free and AWS CodePipeline at $0.002/minute.
Which is cheaper, AWS CloudFormation or AWS CodePipeline?
AWS CloudFormation has a free tier; the other does not. Paid plans start at Free for AWS CloudFormation and $0.002/minute for AWS CodePipeline.
Does AWS CloudFormation or AWS CodePipeline run on more platforms?
AWS CloudFormation runs on Web, Linux, macOS, Windows. AWS CodePipeline runs on Web.
Can I use AWS CloudFormation for free?
Yes. AWS CloudFormation has a free tier, so you can try it without paying. AWS CodePipeline starts at $0.002/minute.
What is AWS CloudFormation best used for?
AWS CloudFormation is most often used for recreating identical dev, staging and production environments on aws, deploying one baseline of security resources across many accounts with stacksets, serverless applications packaged with aws sam, previewing and auditing infrastructure changes through change sets. Of those, recreating identical dev, staging and production environments on aws and deploying one baseline of security resources across many accounts with stacksets are not what AWS CodePipeline is typically brought in for.
What can AWS CloudFormation do that AWS CodePipeline cannot?
AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. AWS CodePipeline covers Stages and actions, V2 pipeline type, Manual approvals, Cross-account deploys.

Answered from the vendors’ own pages

AWS CloudFormation: Does CloudFormation cost money?

Not for AWS resource types. You pay for the resources it creates; third-party extensions are billed at $0.0009 per handler operation after 1,000 free.

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 CloudFormation: CloudFormation or Terraform?

CloudFormation is AWS-only with state managed by AWS; Terraform spans many providers and keeps its own state.

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 CloudFormation: How does CDK relate?

CDK lets you write infrastructure in a programming language and synthesises CloudFormation templates.

AWS CodePipeline: Does CodePipeline run my builds?

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

Share

Related pages

Other head to heads