Softwr

Mobile Development · head to head

AWS Amplify vs AWS CDK

AWS Amplify logo

AWS Amplify

Mobile Development

Amazon Web Services toolset for building and hosting full stack web and mobile apps

From
Free
Free plan
Yes
AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes

The short version

  • AWS CDK is an Apache 2.
  • AWS CDK is free; AWS Amplify starts at $0.01/mo.
  • Only AWS Amplify lists real time data APIs; only AWS CDK lists construct Library of reusable components.
  • Where AWS Amplify falls short: backend is built on AWS services, which ties the app to one cloud provider.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.

How do AWS Amplify and AWS CDK differ?

AWS Amplify and AWS CDK differ on pricing model (Usage-based against Open-source), platforms and category (Mobile Development against Developer Tools). Only the attributes on which AWS Amplify and AWS CDK actually diverge.

Attributes where AWS Amplify and AWS CDK differ
AttributeAWS AmplifyAWS CDK
Pricing modelUsage-basedOpen-source
PlatformsWeb, iOS, AndroidWindows, macOS, Linux
CategoryMobile DevelopmentDeveloper Tools

Identical on both: starting price (Free), free tier (Yes).

Which features does each one have?

They share no listed features; 10 appear only for AWS Amplify and 8 only for AWS CDK. 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 Amplify

  • TypeScript defined data, auth and functions
  • Real time data APIs
  • Authentication and authorisation
  • File storage
  • Amplify Hosting with Git based CI/CD
  • Server side rendering for Next.js and Nuxt
  • Branch environments and pull request previews
  • Cloud sandboxes per developer

Only in AWS CDK

  • Construct Library of reusable components
  • CDK CLI for synthesis and deployment
  • Programmatic CDK Toolkit Library
  • Support for TypeScript, JavaScript, Python, Java, C# and Go
  • Deployment through AWS CloudFormation
  • Custom and shareable constructs
  • Construct Hub registry
  • Open source under Apache 2.0

What is each one used for?

AWS Amplify is most often brought in for full stack TypeScript web apps; AWS CDK for defining AWS infrastructure in TypeScript or Python. The jobs each tool is most often brought in to do.

AWS Amplify

  • Full stack TypeScript web appsnot AWS CDK
  • Hosting Next.js or Nuxt sitesnot AWS CDK
  • Mobile app backends with auth and storagenot AWS CDK
  • Static site hosting with CI/CDnot AWS CDK
  • Prototyping on AWS with sandboxesnot AWS CDK

AWS CDK

  • Defining AWS infrastructure in TypeScript or Pythonnot AWS Amplify
  • Reusable internal infrastructure modulesnot AWS Amplify
  • Serverless application stacksnot AWS Amplify
  • Testing infrastructure with unit testsnot AWS Amplify
  • Standardising environments across accountsnot AWS Amplify

Where do AWS Amplify and AWS CDK fall short?

AWS Amplify's most cited limit: backend is built on AWS services, which ties the app to one cloud provider. AWS CDK's: targets AWS only, so it does not provision resources on other clouds. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS Amplify

  • Backend is built on AWS services, which ties the app to one cloud provider
  • Usage billing across build, storage, transfer and backend services is harder to forecast
  • Free allowance applies for the first 12 months only
  • Teams not already using AWS face a learning curve across Cognito, AppSync and Lambda

AWS CDK

  • Targets AWS only, so it does not provision resources on other clouds
  • Deploys through CloudFormation, so its resource coverage and limits apply
  • Infrastructure written in code can be harder to review than declarative templates
  • The AWS resources it creates are billed separately at standard AWS rates

How much do AWS Amplify and AWS CDK cost?

AWS Amplify has a free plan, with paid plans from $0.01/mo; AWS CDK is free to use. Plan by plan below, from each vendor's own pricing page.

AWS Amplify

Free
  • Build minutes (Standard)$0.01/minute
  • Storage$0.023/gb per month
  • Data transfer out$0.15/gb

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

Which should you pick?

Choose AWS Amplify if

  • You need typescript defined data, auth and functions.
  • You want to start without paying.
  • You work on Web, iOS, Android.
  • You also want real time data apis.

Choose AWS CDK if

  • You need construct library of reusable components.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want cdk cli for synthesis and deployment.

Questions people ask

Is AWS Amplify or AWS CDK better?
It depends on the job. AWS Amplify fits full stack TypeScript web apps; AWS CDK fits defining AWS infrastructure in TypeScript or Python. AWS Amplify starts at Free and AWS CDK at Free.
Which is cheaper, AWS Amplify or AWS CDK?
AWS Amplify starts at Free and AWS CDK at Free.
Does AWS Amplify or AWS CDK run on more platforms?
AWS Amplify runs on Web, iOS, Android. AWS CDK runs on Windows, macOS, Linux.
Can I use AWS Amplify for free?
Both have a free tier, so you can try either at no cost before committing.
What is AWS Amplify best used for?
AWS Amplify is most often used for full stack typescript web apps, hosting next.js or nuxt sites, mobile app backends with auth and storage, static site hosting with ci/cd. Of those, full stack typescript web apps and hosting next.js or nuxt sites are not what AWS CDK is typically brought in for.
What can AWS Amplify do that AWS CDK cannot?
AWS Amplify covers TypeScript defined data, auth and functions, Real time data APIs, Authentication and authorisation, File storage. AWS CDK covers Construct Library of reusable components, CDK CLI for synthesis and deployment, Programmatic CDK Toolkit Library, Support for TypeScript, JavaScript, Python, Java, C# and Go.

Answered from the vendors’ own pages

AWS Amplify: Which platforms does AWS Amplify support?

The vendor lists web frameworks including React, Next.js, Angular, Vue and JavaScript. Mobile support covers React Native, Flutter, Android and Swift.

Source
AWS CDK: Which languages does AWS CDK support?

The AWS documentation lists TypeScript, JavaScript, Python, Java, C# and .NET, and Go. Infrastructure is defined as constructs composed into stacks and apps.

Source
AWS Amplify: How is AWS Amplify priced?

Pricing is pay as you go with no monthly minimums. Standard build minutes cost 0.01 dollars, storage 0.023 dollars per GB per month and data transfer out 0.15 dollars per GB, before any free tier allowance.

Source
AWS CDK: How does AWS CDK deploy resources?

CDK apps are synthesised and deployed through AWS CloudFormation. The documentation states this gives predictable, repeatable deployments with rollback on error.

Source
AWS Amplify: Is there a free tier?

The pricing page lists a free allowance for the first 12 months, including 1,000 Standard build minutes, 5 GB of storage and 15 GB of data transfer out per month. Team seats and frontend UI components are always free.

Source
AWS CDK: Is AWS CDK free?

It is open source under the Apache 2.0 licence according to its GitHub repository. The AWS resources you provision with it are charged at their normal rates.

Source
AWS Amplify: Can Amplify add AWS services beyond its built in ones?

Yes. The overview states that any AWS service can be added by writing CDK code.

Source
AWS CDK: When was AWS CDK first released?

Wikipedia reports a developer preview announced in 2018 and general availability on 11 July 2019. CDK v2 followed in 2021.

Source
Share

Related pages

Other head to heads