Developer Tools · head to head
AWS CDK vs Basis Theory

AWS CDK
Developer Tools
Open source framework for defining AWS infrastructure in programming languages
- From
- Free
- Free plan
- Yes

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.
| Attribute | AWS CDK | Basis Theory |
|---|---|---|
| Starting price | Free | $995/month |
| Pricing model | Open-source | Per month by token volume |
| Free tier | Yes | No |
| Platforms | Windows, macOS, Linux | Web, iOS, Android, Linux |
| Category | Developer Tools | APIs |
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
FreeNo 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.
SourceBasis 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.
SourceBasis 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.
SourceBasis 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.
SourceBasis Theory: Is data stored outside the United States?
Not on Starter, which is US only. Other regions require a Scale or Enterprise agreement.
Related pages
More on Basis Theory
Other head to heads
- AWS CDK vs Terraform
- AWS CDK vs HCP Terraform
- AWS CDK vs Atlantis
- AWS CDK vs Pants Build
- AWS CDK vs Frappe
- AWS CDK vs Eclipse
- AWS CDK vs Spacelift
- AWS CDK vs Python
- AWS CDK vs Backstage
- AWS CDK vs Jitsu
- AWS CDK vs Notepad++
- AWS CDK vs Steampipe
- AWS CDK vs iTerm2
- AWS CDK vs JFrog Artifactory
- AWS CDK vs Leafmap
- AWS CDK vs LocalStack
- AWS CDK vs OrbStack
- AWS CDK vs PhpStorm
- AWS CDK vs Skyflow
- AWS CDK vs Increase
- AWS CDK vs Lithic
- AWS CDK vs Volt
- AWS CDK vs Swan
- AWS CDK vs Trustly
- AWS CDK vs Moov
- AWS CDK vs Vodeno
- AWS CDK vs TrueLayer
- AWS CDK vs Paymentology
- AWS CDK vs Akoya
- AWS CDK vs Sila
- AWS CDK vs Yapily
- AWS CDK vs 10x Banking
- AWS CDK vs Appwrite
- AWS CDK vs Bruno
- AWS CDK vs Marqeta
- AWS CDK vs Temenos Transact
- Basis Theory vs Terraform
- Basis Theory vs HCP Terraform
- Basis Theory vs Atlantis
- Basis Theory vs Pants Build
- Basis Theory vs Frappe
- Basis Theory vs Eclipse
- Basis Theory vs Spacelift
- Basis Theory vs Python
- Basis Theory vs Backstage
- Basis Theory vs Jitsu
- Basis Theory vs Notepad++
- Basis Theory vs Steampipe
- Basis Theory vs iTerm2
- Basis Theory vs JFrog Artifactory
- Basis Theory vs Leafmap
- Basis Theory vs LocalStack
- Basis Theory vs OrbStack
- Basis Theory vs PhpStorm
- Basis Theory vs Skyflow
- Basis Theory vs Increase
- Basis Theory vs Lithic
- Basis Theory vs Volt
- Basis Theory vs Swan
- Basis Theory vs Trustly
- Basis Theory vs Moov
- Basis Theory vs Vodeno
- Basis Theory vs TrueLayer
- Basis Theory vs Paymentology
- Basis Theory vs Akoya
- Basis Theory vs Sila
- Basis Theory vs Yapily
- Basis Theory vs 10x Banking
- Basis Theory vs Appwrite
- Basis Theory vs Bruno
- Basis Theory vs Marqeta
- Basis Theory vs Temenos Transact
