Softwr

APIs · head to head

AWS CodeBuild vs Basis Theory

AWS CodeBuild logo

AWS CodeBuild

APIs

Pay-per-minute managed build service for compiling, testing and packaging code

From
$0.005/minute
Free plan
No
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 CodeBuild starts at $0.005/mo, Basis Theory at $995/mo.
  • Only AWS CodeBuild lists managed build environments; only Basis Theory lists tokenisation API.
  • Where AWS CodeBuild falls short: billing is rounded per minute on EC2 compute, so many short jobs cost more than their actual run time suggests.

How do AWS CodeBuild and Basis Theory differ?

AWS CodeBuild and Basis Theory differ on starting price ($0.005/minute against $995/month), pricing model and platforms. Only the attributes on which AWS CodeBuild and Basis Theory actually diverge.

Attributes where AWS CodeBuild and Basis Theory differ
AttributeAWS CodeBuildBasis Theory
Starting price$0.005/minute$995/month
Pricing modelPer build minute by instance typePer month by token volume
PlatformsWeb, Linux, WindowsWeb, iOS, Android, Linux

Identical on both: free tier (No).

Not yet recorded: category for AWS CodeBuild.

Which features does each one have?

They share no listed features; 6 appear only for AWS CodeBuild 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 CodeBuild

  • Managed build environments
  • Lambda and EC2 compute
  • Reserved capacity
  • Buildspec files
  • Caching
  • GitHub Actions runners

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 CodeBuild is most often brought in for building and pushing container images to Amazon ECR from a CodePipeline stage. The jobs each tool is most often brought in to do.

AWS CodeBuild

  • Building and pushing container images to Amazon ECR from a CodePipeline stagenot Basis Theory
  • Running unit tests in parallel across many ephemeral containersnot Basis Theory
  • Self-hosted GitHub Actions runners that need IAM access to AWS resourcesnot Basis Theory
  • Compiling for Arm using cheaper Graviton-based build instancesnot 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 CodeBuild
  • 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 CodeBuild
  • A fintech collecting bank account and identity data that needs it isolated from its application database before an enterprise security reviewnot AWS CodeBuild
  • 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 CodeBuild

Where do AWS CodeBuild and Basis Theory fall short?

AWS CodeBuild's most cited limit: billing is rounded per minute on EC2 compute, so many short jobs cost more than their actual run time suggests. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS CodeBuild

  • Each build starts from a clean environment, so dependency installs and image pulls repeat unless caching is configured, which inflates build minutes
  • Billing is rounded per minute on EC2 compute, so many short jobs cost more than their actual run time suggests
  • There is no built-in repository, pipeline UI or code review, so you need CodePipeline or a third-party system to trigger and track releases
  • Windows and larger instance types cost several times the Linux small rate, and the pricing table has dozens of instance rows to compare
  • Debugging a failed build is slower than on a local runner because you rely on logs or session manager rather than a persistent machine

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 CodeBuild and Basis Theory cost?

AWS CodeBuild starts at $0.005/mo; Basis Theory starts at $995/mo. Plan by plan below, from each vendor's own pricing page.

AWS CodeBuild

$0.005/minute
  • Linux general1.small$0.005/minute
    • 3 GB memory, 2 vCPUs
    • 100 free build minutes per month on general1.small or arm1.small
  • Linux general1.large$0.02/minute
    • 15 GB memory, 8 vCPUs
    • general1.2xlarge is $0.20 per minute
  • Lambda compute$0.00001/second
    • Billed per second from $0.00001 (1 GB Arm) to $0.0002 (10 GB x86-64)
    • Suited to short builds

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 CodeBuild if

  • You need managed build environments.
  • You work on Web, Linux, Windows.
  • You also want lambda and ec2 compute.

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 CodeBuild or Basis Theory better?
It depends on the job. AWS CodeBuild fits building and pushing container images to Amazon ECR from a CodePipeline stage; 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 CodeBuild starts at $0.005/minute and Basis Theory at $995/month.
Which is cheaper, AWS CodeBuild or Basis Theory?
AWS CodeBuild starts at $0.005/minute and Basis Theory at $995/month.
Does AWS CodeBuild or Basis Theory run on more platforms?
AWS CodeBuild runs on Web, Linux, Windows. Basis Theory runs on Web, iOS, Android, Linux.
What is AWS CodeBuild best used for?
AWS CodeBuild is most often used for building and pushing container images to amazon ecr from a codepipeline stage, running unit tests in parallel across many ephemeral containers, self-hosted github actions runners that need iam access to aws resources, compiling for arm using cheaper graviton-based build instances. Of those, building and pushing container images to amazon ecr from a codepipeline stage and running unit tests in parallel across many ephemeral containers are not what Basis Theory is typically brought in for.
What can AWS CodeBuild do that Basis Theory cannot?
AWS CodeBuild covers Managed build environments, Lambda and EC2 compute, Reserved capacity, Buildspec files. Basis Theory covers Tokenisation API, Hosted elements, Outbound proxy, PCI attestation of compliance.

Answered from the vendors’ own pages

AWS CodeBuild: How much does CodeBuild cost?

Linux general1.small is $0.005 per build minute, general1.medium $0.01 and general1.large $0.02, per the AWS pricing page. 100 build minutes per month on small instances are free.

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 CodeBuild: Does CodeBuild replace Jenkins?

It replaces the build agents, not the orchestration. You still need CodePipeline, webhooks or another trigger for pipeline logic.

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 CodeBuild: Can CodeBuild run GitHub Actions?

Yes. CodeBuild can act as managed runners for GitHub Actions workflows, billed at CodeBuild compute rates.

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.

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