Softwr

Developer Tools · head to head

AWS CDK vs Google Compute Engine

AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes
Google Compute Engine logo

Google Compute Engine

Developer Tools

Google Cloud virtual machines billed per vCPU and per GB of memory

From
On request
Free plan
No

The short version

  • AWS CDK is an Apache 2.
  • AWS CDK is free; Google Compute Engine prices on request.
  • Only AWS CDK lists construct Library of reusable components; only Google Compute Engine lists machine families.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
  • Where Google Compute Engine falls short: you manage patching, hardening and scaling, so the effective cost includes operations time that serverless options remove.

How do AWS CDK and Google Compute Engine differ?

AWS CDK and Google Compute Engine differ on starting price (Free against On request), pricing model and free tier (Yes against No). Only the attributes on which AWS CDK and Google Compute Engine actually diverge.

Attributes where AWS CDK and Google Compute Engine differ
AttributeAWS CDKGoogle Compute Engine
Starting priceFreeOn request
Pricing modelOpen-sourcePer vCPU and per GB of memory per hour
Free tierYesNo
PlatformsWindows, macOS, LinuxWeb, API

Not yet recorded: category for Google Compute Engine.

Which features does each one have?

They share no listed features; 8 appear only for AWS CDK and 5 only for Google Compute Engine. 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 Google Compute Engine

  • Machine families
  • Custom machine types
  • Sustained use discounts
  • Committed use discounts
  • Free e2-micro

What is each one used for?

AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python; Google Compute Engine for lift-and-shift of virtual machine workloads to Google Cloud. The jobs each tool is most often brought in to do.

AWS CDK

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

Google Compute Engine

  • Lift-and-shift of virtual machine workloads to Google Cloudnot AWS CDK
  • GPU and high performance computing jobsnot AWS CDK
  • Self-managed databases or legacy servers needing OS controlnot AWS CDK
  • Cost-optimised batch work on spot capacitynot AWS CDK

Where do AWS CDK and Google Compute Engine fall short?

AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Google Compute Engine's: machine type choice is wide, and picking the wrong family wastes money until you resize. 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

Google Compute Engine

  • You manage patching, hardening and scaling, so the effective cost includes operations time that serverless options remove
  • Bills combine vCPU, memory, disks, network egress and licences, which makes forecasting hard without the pricing calculator
  • Machine type choice is wide, and picking the wrong family wastes money until you resize
  • Sustained use discounts do not stack with committed use discounts, so savings depend on getting commitments right
  • Network egress charges can exceed compute cost for data-heavy applications

How much do AWS CDK and Google Compute Engine cost?

AWS CDK is free to use. Plan by plan below, from each vendor's own pricing page.

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

Google Compute Engine

On request
  • On demandOn request
    • vCPU and memory billed separately
    • Sustained use discounts up to 30%
    • Committed use discounts available

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 Google Compute Engine if

  • You need machine families.
  • You work on Web, API.
  • You also want custom machine types.

Questions people ask

Is AWS CDK or Google Compute Engine better?
It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Google Compute Engine fits lift-and-shift of virtual machine workloads to Google Cloud. AWS CDK starts at Free and Google Compute Engine at On request.
Which is cheaper, AWS CDK or Google Compute Engine?
AWS CDK has a free tier; the other does not. Paid plans start at Free for AWS CDK and On request for Google Compute Engine.
Does AWS CDK or Google Compute Engine run on more platforms?
AWS CDK runs on Windows, macOS, Linux. Google Compute Engine runs on Web, API.
Can I use AWS CDK for free?
Yes. AWS CDK has a free tier, so you can try it without paying. Google Compute Engine starts at On request.
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 Google Compute Engine is typically brought in for.
What can AWS CDK do that Google Compute Engine 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. Google Compute Engine covers Machine families, Custom machine types, Sustained use discounts, Committed use discounts.

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
Google Compute Engine: How is Compute Engine billed?

Per vCPU and per GB of memory per hour, plus disks and network.

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
Google Compute Engine: Is there a free VM?

Yes, Google Cloud offers a free e2-micro instance under its free programme.

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
Google Compute Engine: What discounts exist?

Sustained use discounts of up to 30% and committed use discounts.

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