Softwr

Developer Tools · head to head

AWS CDK vs Basis Theory

AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes
Basis Theory logo

Basis Theory

APIs

Developer tokenisation platform that holds card and sensitive data inside a PCI Level 1 environment you do not operate

From
$995/month
Free plan
No

The short version

  • AWS CDK is an Apache 2.
  • AWS CDK is free; Basis Theory starts at $995/mo.
  • Only AWS CDK lists construct Library of reusable components; only Basis Theory lists tokenisation API.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.

How do AWS CDK and Basis Theory differ?

AWS CDK and Basis Theory differ on starting price (Free against $995/month), pricing model and free tier (Yes against No). Only the attributes on which AWS CDK and Basis Theory actually diverge.

Attributes where AWS CDK and Basis Theory differ
AttributeAWS CDKBasis Theory
Starting priceFree$995/month
Pricing modelOpen-sourcePer month by token volume
Free tierYesNo
PlatformsWindows, macOS, LinuxWeb, iOS, Android, Linux
CategoryDeveloper ToolsAPIs

Which features does each one have?

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

Only in Basis Theory

  • Tokenisation API
  • Hosted elements
  • Outbound proxy
  • PCI attestation of compliance
  • Processor portability
  • Reactors
  • Access controls and audit
  • PII and PHI options

What is each one used for?

AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python. The jobs each tool is most often brought in to do.

AWS CDK

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

Basis Theory

  • A payments company that wants card on file without bringing its own infrastructure into PCI scope and paying for the assessment that followsnot AWS CDK
  • A merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirernot AWS CDK
  • A fintech collecting bank account and identity data that needs it isolated from its application database before an enterprise security reviewnot AWS CDK
  • A team that needs to send stored card data to a third party for a one-off integration without that data traversing its own serversnot AWS CDK

Where do AWS CDK and Basis Theory fall short?

AWS CDK's most cited limit: 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 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

Basis Theory

  • The Starter plan is 995 US dollars a month before any volume, which is a real floor for an early stage company and puts the product out of reach of teams tokenising a few thousand records
  • Starter is limited to the US region, so a company with European data residency requirements is pushed into a quoted Scale or Enterprise agreement immediately
  • Log retention on Starter is 24 hours, which is well below what most security teams expect for a system holding cardholder data and forces an upgrade for reasons unrelated to volume
  • Migrating away means moving card data out of the vault, which requires processor and assessor involvement and is slow, so the portability argument that attracts buyers cuts against them at exit
  • An attestation of compliance covers the vendor environment, not your assessment; your assessor still decides what is in scope, and buyers occasionally discover their integration pattern pulled systems back into scope anyway

How much do AWS CDK and Basis Theory cost?

AWS CDK is free to use; Basis Theory starts at $995/mo. Plan by plan below, from each vendor's own pricing page.

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

Basis Theory

$995/month
  • Starter$995/mo
    • 20,000 tokens included
    • Production PCI Level 1 environment
    • US region only
  • ScaleOn request
    • Quoted
    • Higher token volumes
    • Additional regions
  • EnterpriseOn request
    • Quoted
    • Additional compliance options for PII and PHI
    • Responses for 95 percent of PCI SAQ D

Which should you pick?

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.

Choose Basis Theory if

  • You need tokenisation api.
  • You work on Web, iOS, Android, Linux.
  • You also want hosted elements.

Questions people ask

Is AWS CDK or Basis Theory better?
It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Basis Theory fits a payments company that wants card on file without bringing its own infrastructure into PCI scope and paying for the assessment that follows. AWS CDK starts at Free and Basis Theory at $995/month.
Which is cheaper, AWS CDK or Basis Theory?
AWS CDK has a free tier; the other does not. Paid plans start at Free for AWS CDK and $995/month for Basis Theory.
Does AWS CDK or Basis Theory run on more platforms?
AWS CDK runs on Windows, macOS, Linux. Basis Theory runs on Web, iOS, Android, Linux.
Can I use AWS CDK for free?
Yes. AWS CDK has a free tier, so you can try it without paying. Basis Theory starts at $995/month.
What is AWS CDK best used for?
AWS CDK is most often used for defining aws infrastructure in typescript or python, reusable internal infrastructure modules, serverless application stacks, testing infrastructure with unit tests. Of those, defining aws infrastructure in typescript or python and reusable internal infrastructure modules are not what Basis Theory is typically brought in for.
What can AWS CDK do that Basis Theory cannot?
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. Basis Theory covers Tokenisation API, Hosted elements, Outbound proxy, PCI attestation of compliance.

Answered from the vendors’ own pages

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
Basis Theory: Does this make us PCI compliant?

It removes cardholder data from your systems and gives you an AOC plus documented responses for most of a SAQ D. Your assessor still determines your scope, and a careless integration can pull systems back in.

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
Basis Theory: What does it cost to start?

995 US dollars a month on Starter, including 20,000 tokens, a production PCI Level 1 environment and US hosting. Higher tiers are quoted.

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
Basis Theory: Can we switch payment processors without re-collecting cards?

Yes, that is the main non-compliance reason to buy it. You hold the tokens and detokenise into whichever processor you route to.

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
Basis Theory: Is data stored outside the United States?

Not on Starter, which is US only. Other regions require a Scale or Enterprise agreement.

Share

Related pages

Other head to heads