Softwr

Databases · head to head

AWS CloudFormation vs Azure Cosmos DB

AWS CloudFormation logo

AWS CloudFormation

Databases

Declarative infrastructure as code for AWS, free for AWS resources

From
Free
Free plan
Yes
Azure Cosmos DB logo

Azure Cosmos DB

Databases

Globally distributed, multi-model database service from Azure

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only AWS CloudFormation lists stacks and templates; only Azure Cosmos DB lists global Distribution.
  • Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
  • Where Azure Cosmos DB falls short: autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used.

How do AWS CloudFormation and Azure Cosmos DB differ?

AWS CloudFormation and Azure Cosmos DB differ on pricing model and platforms. Only the attributes on which AWS CloudFormation and Azure Cosmos DB actually diverge.

Attributes where AWS CloudFormation and Azure Cosmos DB differ
AttributeAWS CloudFormationAzure Cosmos DB
Pricing modelNo charge for AWS resource types; extensions per handler operationUsage-based
PlatformsWeb, Linux, macOS, WindowsWeb, Azure

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for AWS CloudFormation, founded for AWS CloudFormation.

Which features does each one have?

They share no listed features; 6 appear only for AWS CloudFormation and 14 only for Azure Cosmos DB. 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 CloudFormation

  • Stacks and templates
  • Change sets
  • Drift detection
  • StackSets
  • Rollback
  • Registry extensions

Only in Azure Cosmos DB

  • Global Distribution
  • Multi-model APIs
  • Elastic Scaling
  • Five Consistency Levels
  • SLA-backed Latency
  • Automatic Indexing
  • Serverless
  • Azure Functions

What is each one used for?

AWS CloudFormation is most often brought in for recreating identical dev, staging and production environments on AWS; Azure Cosmos DB for running a globally distributed multi model database on Azure. The jobs each tool is most often brought in to do.

AWS CloudFormation

  • Recreating identical dev, staging and production environments on AWSnot Azure Cosmos DB
  • Deploying one baseline of security resources across many accounts with StackSetsnot Azure Cosmos DB
  • Serverless applications packaged with AWS SAMnot Azure Cosmos DB
  • Previewing and auditing infrastructure changes through change setsnot Azure Cosmos DB

Azure Cosmos DB

  • Running a globally distributed multi model database on Azurenot AWS CloudFormation
  • Serving low latency reads and writes from multiple Azure regionsnot AWS CloudFormation
  • Storing document, key value and graph data behind a managed servicenot AWS CloudFormation

Where do AWS CloudFormation and Azure Cosmos DB fall short?

AWS CloudFormation's most cited limit: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it. Azure Cosmos DB's: autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS CloudFormation

  • It only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it
  • Raw templates are verbose and hard to reuse, which is why many teams add CDK on top
  • A failed update can leave a stack in a stuck state such as UPDATE_ROLLBACK_FAILED that needs manual intervention
  • New AWS features sometimes arrive in CloudFormation after the console and API, so you wait or script around the gap
  • Deleting a stack deletes its resources, so a mistaken delete of a stack with data needs DeletionPolicy discipline

Azure Cosmos DB

  • Autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used
  • Provisioned throughput is charged in every region the account is replicated to, so multi region accounts multiply the RU bill
  • Storage charges cover data, indexes and backups in each replicated region
  • Egress out of Azure and between regions is charged, though ingress is free
  • The free allowance is one account per Azure subscription, limited to 1,000 RU/s and 25 GB
  • RU/s rates vary by region and are only shown through the pricing calculator rather than a flat published rate

How much do AWS CloudFormation and Azure Cosmos DB cost?

AWS CloudFormation is free to use; Azure Cosmos DB is free to use. Plan by plan below, from each vendor's own pricing page.

AWS CloudFormation

Free
  • AWS resource typesFree
    • No additional charge for using CloudFormation with AWS resources
    • You pay for the resources the stack creates
  • Third-party extensionsOn request
    • $0.0009 per handler operation, first 1,000 per month free
    • $0.00008 per second of handler duration beyond 30 seconds

Azure Cosmos DB

Free
  • Free TierFree
    • 1000 RU/s
    • 25GB storage
    • First 12 months
  • ServerlessFree
    • Pay per request
    • Auto-scaling
    • Event-driven workloads

Which should you pick?

Choose AWS CloudFormation if

  • You need stacks and templates.
  • You want to start without paying.
  • You work on Web, Linux, macOS, Windows.
  • You also want change sets.

Choose Azure Cosmos DB if

  • You need global distribution.
  • You want to start without paying.
  • You work on Web, Azure.
  • You also want multi-model apis.

Questions people ask

Is AWS CloudFormation or Azure Cosmos DB better?
It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; Azure Cosmos DB fits running a globally distributed multi model database on Azure. AWS CloudFormation starts at Free and Azure Cosmos DB at Free.
Which is cheaper, AWS CloudFormation or Azure Cosmos DB?
AWS CloudFormation starts at Free and Azure Cosmos DB at Free.
Does AWS CloudFormation or Azure Cosmos DB run on more platforms?
AWS CloudFormation runs on Web, Linux, macOS, Windows. Azure Cosmos DB runs on Web, Azure.
Can I use AWS CloudFormation for free?
Both have a free tier, so you can try either at no cost before committing.
What is AWS CloudFormation best used for?
AWS CloudFormation is most often used for recreating identical dev, staging and production environments on aws, deploying one baseline of security resources across many accounts with stacksets, serverless applications packaged with aws sam, previewing and auditing infrastructure changes through change sets. Of those, recreating identical dev, staging and production environments on aws and deploying one baseline of security resources across many accounts with stacksets are not what Azure Cosmos DB is typically brought in for.
What can AWS CloudFormation do that Azure Cosmos DB cannot?
AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. Azure Cosmos DB covers Global Distribution, Multi-model APIs, Elastic Scaling, Five Consistency Levels.

Answered from the vendors’ own pages

AWS CloudFormation: Does CloudFormation cost money?

Not for AWS resource types. You pay for the resources it creates; third-party extensions are billed at $0.0009 per handler operation after 1,000 free.

Azure Cosmos DB: Is there a free tier for Azure Cosmos DB?

Yes, Cosmos DB offers a free tier with 1,000 RU/s of throughput and 25 GB of storage per month for the lifetime of the account, available to new accounts.

Source
AWS CloudFormation: CloudFormation or Terraform?

CloudFormation is AWS-only with state managed by AWS; Terraform spans many providers and keeps its own state.

Azure Cosmos DB: How is Cosmos DB priced after the free tier?

Cosmos DB uses three billing models: provisioned throughput billed per request unit per second, vCore pricing for certain APIs, or serverless consumption pricing where you pay only for requests processed. Reserved capacity offers 20% discount for one year or 30% for three years.

Source
AWS CloudFormation: How does CDK relate?

CDK lets you write infrastructure in a programming language and synthesises CloudFormation templates.

Azure Cosmos DB: Can I change my pricing model after choosing one?

No. Once you select a compute pricing model and API, they cannot be changed. This choice is permanent for that database.

Source
Azure Cosmos DB: Is there a trial period for Cosmos DB beyond the free tier?

Azure offers a 30-day free trial account for all Azure services. Additionally, Azure AI customers may be eligible for a 90-day free Cosmos DB subscription through the Azure AI Advantage program.

Source
Share

Related pages

Other head to heads