Softwr

Cloud · head to head

Amazon EC2 vs GitHub Codespaces

Amazon EC2 logo

Amazon EC2

Cloud

Resizable virtual server compute service on AWS

From
Free
Free plan
Yes
GitHub Codespaces logo

GitHub Codespaces

Developer Tools

Cloud hosted development environments configured by dev container files

From
Free
Free plan
Yes

The short version

  • Amazon EC2 is free; GitHub Codespaces starts at $0.09/mo.
  • Only Amazon EC2 lists over 1,000 instance types; only GitHub Codespaces lists dev container based configuration.
  • Where Amazon EC2 falls short: cost forecasting is complex across purchase options and instance types.
  • Where GitHub Codespaces falls short: cannot be self hosted, according to GitHub.

How do Amazon EC2 and GitHub Codespaces differ?

Amazon EC2 and GitHub Codespaces differ on platforms and category (Cloud against Developer Tools). Only the attributes on which Amazon EC2 and GitHub Codespaces actually diverge.

Attributes where Amazon EC2 and GitHub Codespaces differ
AttributeAmazon EC2GitHub Codespaces
PlatformsWeb, Linux, Windows, macOSWeb, Windows, macOS, Linux
CategoryCloudDeveloper Tools

Identical on both: starting price (Free), pricing model (Usage-based), free tier (Yes).

Which features does each one have?

They share no listed features; 7 appear only for Amazon EC2 and 8 only for GitHub Codespaces. 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 Amazon EC2

  • Over 1,000 instance types
  • Intel, AMD and Arm (Graviton) processors
  • Per-second billing
  • Spot Instances and Savings Plans
  • Dedicated Hosts
  • EC2 Mac instances
  • Nitro System isolation

Only in GitHub Codespaces

  • Dev container based configuration
  • Launch from repository, pull request, commit or template
  • Machines from 2 to 32 cores
  • Browser based editor
  • Connect from Visual Studio Code or IntelliJ
  • JetBrains IDEs and JupyterLab support in beta
  • Organisation access and spending controls
  • Monthly free allowance for personal accounts

What is each one used for?

Amazon EC2 is most often brought in for hosting web applications and APIs; GitHub Codespaces for onboarding contributors without local setup. The jobs each tool is most often brought in to do.

Amazon EC2

  • Hosting web applications and APIsnot GitHub Codespaces
  • Running GPU and machine learning workloadsnot GitHub Codespaces
  • Building and signing macOS appsnot GitHub Codespaces
  • Bursting capacity with Spot Instancesnot GitHub Codespaces

GitHub Codespaces

  • Onboarding contributors without local setupnot Amazon EC2
  • Fixing bugs from an open pull requestnot Amazon EC2
  • Consistent environments across a teamnot Amazon EC2
  • Coding from a tablet or any browsernot Amazon EC2
  • Teaching with preconfigured environmentsnot Amazon EC2

Where do Amazon EC2 and GitHub Codespaces fall short?

Amazon EC2's most cited limit: cost forecasting is complex across purchase options and instance types. GitHub Codespaces's: cannot be self hosted, according to GitHub. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon EC2

  • Cost forecasting is complex across purchase options and instance types
  • Spot instances carry no SLA and can be reclaimed on two minutes' notice
  • Instance-store data is lost when an instance stops or terminates
  • You manage OS patching, scaling and security configuration

GitHub Codespaces

  • Cannot be self hosted, according to GitHub
  • Requires an internet connection and works with GitHub repositories
  • Usage billing grows with machine size, since included compute is weighted by core count
  • Organisation use needs admin enablement before developers can create codespaces

How much do Amazon EC2 and GitHub Codespaces cost?

Amazon EC2 is free to use; GitHub Codespaces has a free plan, with paid plans from $0.09/mo. Plan by plan below, from each vendor's own pricing page.

Amazon EC2

Free

No published plan breakdown. See the Amazon EC2 review.

GitHub Codespaces

Free
  • Compute$0.09/core hour
  • Storage$0.07/gb month

Which should you pick?

Choose Amazon EC2 if

  • You need over 1,000 instance types.
  • You want to start without paying.
  • You work on Web, Linux, Windows, macOS.
  • You also want intel, amd and arm (graviton) processors.

Choose GitHub Codespaces if

  • You need dev container based configuration.
  • You want to start without paying.
  • You work on Web, Windows, macOS, Linux.
  • You also want launch from repository, pull request, commit or template.

Questions people ask

Is Amazon EC2 or GitHub Codespaces better?
It depends on the job. Amazon EC2 fits hosting web applications and APIs; GitHub Codespaces fits onboarding contributors without local setup. Amazon EC2 starts at Free and GitHub Codespaces at Free.
Which is cheaper, Amazon EC2 or GitHub Codespaces?
Amazon EC2 starts at Free and GitHub Codespaces at Free.
Does Amazon EC2 or GitHub Codespaces run on more platforms?
Amazon EC2 runs on Web, Linux, Windows, macOS. GitHub Codespaces runs on Web, Windows, macOS, Linux.
Can I use Amazon EC2 for free?
Both have a free tier, so you can try either at no cost before committing.
What is Amazon EC2 best used for?
Amazon EC2 is most often used for hosting web applications and apis, running gpu and machine learning workloads, building and signing macos apps, bursting capacity with spot instances. Of those, hosting web applications and apis and running gpu and machine learning workloads are not what GitHub Codespaces is typically brought in for.
What can Amazon EC2 do that GitHub Codespaces cannot?
Amazon EC2 covers Over 1,000 instance types, Intel, AMD and Arm (Graviton) processors, Per-second billing, Spot Instances and Savings Plans. GitHub Codespaces covers Dev container based configuration, Launch from repository, pull request, commit or template, Machines from 2 to 32 cores, Browser based editor.

Answered from the vendors’ own pages

Amazon EC2: How is Amazon EC2 billed?

Usage is billed in one-second increments with a minimum charge of 60 seconds, across all purchase options and Regions.

Source
GitHub Codespaces: How much does GitHub Codespaces cost?

GitHub's billing documentation lists compute at 0.09 dollars per core hour and storage at 0.07 dollars per GB month. A 2 core machine therefore costs 0.18 dollars per hour.

Source
Amazon EC2: When did EC2 launch?

A limited public beta started on 25 August 2006, and the beta label was dropped on 23 October 2008 with the addition of an SLA.

Source
GitHub Codespaces: Is there a free allowance?

Yes. Personal GitHub Free accounts include 120 compute hours and 15 GB month of storage, and GitHub Pro includes 180 compute hours and 20 GB month. Included compute is weighted by core count.

Source
Amazon EC2: How much can Spot Instances save?

AWS says Spot Instances save up to 90 percent versus On-Demand, and Savings Plans up to 72 percent. Wikipedia notes Spot can be reclaimed with two minutes' notice.

Source
GitHub Codespaces: Which editors can I use?

Codespaces can be used in the browser or connected from Visual Studio Code or IntelliJ. JetBrains IDEs and JupyterLab are listed as beta.

Source
GitHub Codespaces: Can Codespaces be self hosted?

No. GitHub states that Codespaces cannot be self hosted.

Source
Share

Related pages

Other head to heads