Softwr

Logging · head to head

AWS CloudFormation vs CloudWatch

AWS CloudFormation logo

AWS CloudFormation

Logging

Declarative infrastructure as code for AWS, free for AWS resources

From
Free
Free plan
Yes
CloudWatch logo

CloudWatch

Logging

AWS Monitoring and Observability

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only AWS CloudFormation lists stacks and templates; only CloudWatch lists metrics collection.
  • Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
  • Where CloudWatch falls short: the free tier covers 5 GB of log ingestion and 10 custom metrics a month, after which log ingestion is $0.50 per GB from 5 to 30 GB.

How do AWS CloudFormation and CloudWatch differ?

AWS CloudFormation and CloudWatch differ on pricing model and platforms. Only the attributes on which AWS CloudFormation and CloudWatch actually diverge.

Attributes where AWS CloudFormation and CloudWatch differ
AttributeAWS CloudFormationCloudWatch
Pricing modelNo charge for AWS resource types; extensions per handler operationUsage-based
PlatformsWeb, Linux, macOS, WindowsWeb, API

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 9 only for CloudWatch. 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 CloudWatch

  • Metrics collection
  • Log aggregation
  • Dashboards
  • Alarms and notifications
  • API
  • Webhooks
  • REST
  • Web support

What is each one used for?

AWS CloudFormation is most often brought in for recreating identical dev, staging and production environments on AWS; CloudWatch for metrics and log collection for AWS workloads. The jobs each tool is most often brought in to do.

AWS CloudFormation

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

CloudWatch

  • Metrics and log collection for AWS workloadsnot AWS CloudFormation
  • Alarming on thresholds across AWS servicesnot AWS CloudFormation
  • Querying logs with Logs Insightsnot AWS CloudFormation
  • Live tailing logs during an incidentnot AWS CloudFormation
  • Distributed tracing alongside X-Raynot AWS CloudFormation

Where do AWS CloudFormation and CloudWatch fall short?

AWS CloudFormation's most cited limit: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it. CloudWatch's: each custom dashboard beyond the free three is $3 a month. 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

CloudWatch

  • The free tier covers 5 GB of log ingestion and 10 custom metrics a month, after which log ingestion is $0.50 per GB from 5 to 30 GB
  • Custom metrics are $0.30 each for the first 10,000, so instrumenting broadly gets expensive before volume discounts apply
  • Each custom dashboard beyond the free three is $3 a month
  • Alarms are billed at $0.10 per alarm metric a month, with high-resolution alarms costing more
  • Log storage beyond the free 5 GB is $0.03 per GB per month on top of the ingestion charge

How much do AWS CloudFormation and CloudWatch cost?

AWS CloudFormation is free to use; CloudWatch 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

CloudWatch

Free
  • Pay-as-you-goFree
    • Logs ingestion: $0.50/GB (first 5GB free), down to $0.05/GB at scale
    • Logs storage: $0.03/GB/month
    • Live Tail: $0.01/minute after 1,800 free minutes
  • Free tierFree
    • 5GB logs ingestion per month
    • 10 custom metrics
    • 3 custom dashboards

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

  • You need metrics collection.
  • You want to start without paying.
  • You work on Web, API.
  • You also want log aggregation.

Questions people ask

Is AWS CloudFormation or CloudWatch better?
It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; CloudWatch fits metrics and log collection for AWS workloads. AWS CloudFormation starts at Free and CloudWatch at Free.
Which is cheaper, AWS CloudFormation or CloudWatch?
AWS CloudFormation starts at Free and CloudWatch at Free.
Does AWS CloudFormation or CloudWatch run on more platforms?
AWS CloudFormation runs on Web, Linux, macOS, Windows. CloudWatch runs on Web, API.
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 CloudWatch is typically brought in for.
What can AWS CloudFormation do that CloudWatch cannot?
AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. CloudWatch covers Metrics collection, Log aggregation, Dashboards, Alarms and notifications.

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.

CloudWatch: How much does Amazon CloudWatch cost?

CloudWatch uses pay-as-you-go pricing with no upfront commitment. Logs ingestion costs $0.50/GB (first 5GB free), logs storage is $0.03/GB/month, custom metrics cost $0.30/metric/month (first 10,000), custom dashboards are $3/month, and standard alarms are $0.10/metric/month.

Source
AWS CloudFormation: CloudFormation or Terraform?

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

CloudWatch: Does CloudWatch offer a free tier?

Yes, CloudWatch free tier includes 5GB logs ingestion, 10 custom metrics, 3 custom dashboards, and 10 alarm metrics per month at no charge. Usage beyond these limits incurs pay-as-you-go fees.

Source
AWS CloudFormation: How does CDK relate?

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

CloudWatch: What are CloudWatch's pricing tiers for high-volume usage?

CloudWatch offers tiered pricing with volume discounts: logs ingestion starts at $0.50/GB and decreases to $0.05/GB at higher volumes; custom metrics start at $0.30/metric/month and decline to $0.05 at higher volumes; Application Signals cost $1.50 per million traces initially, declining to $0.30.

Source
Share

Related pages

Other head to heads