Softwr

Cloud · head to head

AWS CodePipeline vs AWS Lambda

AWS CodePipeline logo

AWS CodePipeline

Cloud

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

From
$0.002/minute
Free plan
No
AWS Lambda logo

AWS Lambda

Cloud

Run code without thinking about servers

From
Free
Free plan
Yes

The short version

  • AWS Lambda is a serverless compute service.
  • AWS Lambda is free; AWS CodePipeline starts at $0.002/mo.
  • Only AWS CodePipeline lists stages and actions; only AWS Lambda lists multiple languages.
  • 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 Lambda falls short: provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs.

How do AWS CodePipeline and AWS Lambda differ?

AWS CodePipeline and AWS Lambda 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 Lambda actually diverge.

Attributes where AWS CodePipeline and AWS Lambda differ
AttributeAWS CodePipelineAWS Lambda
Starting price$0.002/minuteFree
Pricing modelPer active pipeline or per action execution minuteUsage-based
Free tierNoYes
PlatformsWebWeb, API

Not yet recorded: category for AWS CodePipeline, founded for AWS CodePipeline.

Which features does each one have?

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

  • Function-as-a-Service
  • Event-driven execution
  • Auto-scaling
  • Pay-per-use
  • Multiple languages
  • Concurrency limits
  • Dead Letter Queues
  • Environment variables

What is each one used for?

AWS CodePipeline is most often brought in for teams that want IAM-controlled pipelines without hosting Jenkins; AWS Lambda for event-driven functions without managing servers. 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 Lambda
  • Running staged deployments with manual approval gates across several AWS accountsnot AWS Lambda
  • Teams that want IAM-controlled pipelines without hosting Jenkinsnot AWS Lambda
  • Orchestrating CodeBuild, Lambda and ECS deploys in one visual workflownot AWS Lambda

AWS Lambda

  • Event-driven functions without managing serversnot AWS CodePipeline
  • API backends behind API Gatewaynot AWS CodePipeline
  • Processing S3, DynamoDB, SQS and Kinesis eventsnot AWS CodePipeline
  • Scheduled jobs without a always-on instancenot AWS CodePipeline
  • Edge compute through Lambda@Edgenot AWS CodePipeline

Where do AWS CodePipeline and AWS Lambda 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 Lambda's: ephemeral storage beyond the included 512 MB is metered. 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 Lambda

  • Billed on two axes at once, $0.20 per million requests plus $0.0000166667 per GB-second of duration, so memory settings change the bill as much as traffic does
  • Provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs
  • Ephemeral storage beyond the included 512 MB is metered
  • Lambda@Edge costs $0.60 per million requests, three times the standard request rate
  • VPC use and cross-region data transfer carry EC2 charges on top

How much do AWS CodePipeline and AWS Lambda cost?

AWS CodePipeline starts at $0.002/mo; AWS Lambda 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 Lambda

Free
  • Free TierFree
    • 1M free requests/month
    • 400,000 GB-seconds/month
    • Always free

Which should you pick?

Choose AWS CodePipeline if

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

Choose AWS Lambda if

  • You need function-as-a-service.
  • You want to start without paying.
  • You work on Web, API.
  • You also want event-driven execution.

Questions people ask

Is AWS CodePipeline or AWS Lambda better?
It depends on the job. AWS CodePipeline fits delivering a CloudFormation or CDK application from commit to production inside one AWS organisation; AWS Lambda fits event-driven functions without managing servers. AWS CodePipeline starts at $0.002/minute and AWS Lambda at Free.
Which is cheaper, AWS CodePipeline or AWS Lambda?
AWS Lambda has a free tier; the other does not. Paid plans start at $0.002/minute for AWS CodePipeline and Free for AWS Lambda.
Does AWS CodePipeline or AWS Lambda run on more platforms?
AWS CodePipeline runs on Web. AWS Lambda runs on Web, API.
Can I use AWS Lambda for free?
Yes. AWS Lambda 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 Lambda is typically brought in for.
What can AWS CodePipeline do that AWS Lambda cannot?
AWS CodePipeline covers Stages and actions, V2 pipeline type, Manual approvals, Cross-account deploys. AWS Lambda covers Function-as-a-Service, Event-driven execution, Auto-scaling, Pay-per-use.

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 Lambda: Is there a free tier for AWS Lambda?

Yes. AWS Lambda offers a free tier including 1 million requests per month, 400,000 GB-seconds per month, and 100 GB monthly response streaming.

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 Lambda: How is AWS Lambda charged?

Lambda charges $0.20 per million requests. Duration charges are $0.0000166667 per GB-second for x86 (up to 6 billion GB-seconds/month in US East Ohio with tiered pricing). Ephemeral storage over the included 512 MB costs $0.0000000309 per GB-second. Provisioned Concurrency costs $0.0000041667 per GB-second with a 5-minute minimum.

Source
AWS CodePipeline: Does CodePipeline run my builds?

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

AWS Lambda: What are Lambda Durable Functions pricing?

Lambda Durable Functions include operations at $8.00 per million (start execution, steps, waits). Data written costs $0.25 per GB. Data retention is $0.15 per GB-month with configurable 1-90 day retention (default 14 days).

Source
Share

Related pages

Other head to heads