Softwr

Software · head to head

AWS CloudFormation vs AWS Security Hub

AWS CloudFormation logo

AWS CloudFormation

Software

Declarative infrastructure as code for AWS, free for AWS resources

From
Free
Free plan
Yes
AWS Security Hub logo

AWS Security Hub

Software

Unified cloud security posture and findings across AWS, Azure and Google Cloud

From
$3.75/resource unit per month
Free plan
No

The short version

  • AWS CloudFormation is free; AWS Security Hub starts at $3.75/mo.
  • Only AWS CloudFormation lists stacks and templates; only AWS Security Hub lists findings aggregation.
  • Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
  • Where AWS Security Hub falls short: its most useful findings come from other paid services such as GuardDuty and Inspector, so Security Hub alone is not detection.

How do AWS CloudFormation and AWS Security Hub differ?

AWS CloudFormation and AWS Security Hub differ on starting price, pricing model and free tier (Yes against No). Only the attributes on which AWS CloudFormation and AWS Security Hub actually diverge.

Attributes where AWS CloudFormation and AWS Security Hub differ
AttributeAWS CloudFormationAWS Security Hub
Starting priceFree$3.75/resource unit per month
Pricing modelNo charge for AWS resource types; extensions per handler operationPer resource unit per month, plus add-ons
Free tierYesNo
PlatformsWeb, Linux, macOS, WindowsWeb

Which features does each one have?

They share no listed features; 6 appear only for AWS CloudFormation and 6 only for AWS Security Hub. 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 AWS Security Hub

  • Findings aggregation
  • Posture management
  • Exposure and risk analytics
  • Inspector scans included
  • Automation rules
  • Multicloud coverage

What is each one used for?

AWS CloudFormation is most often brought in for recreating identical dev, staging and production environments on AWS; AWS Security Hub for one place for an AWS-centric security team to triage findings across accounts. The jobs each tool is most often brought in to do.

AWS CloudFormation

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

AWS Security Hub

  • One place for an AWS-centric security team to triage findings across accountsnot AWS CloudFormation
  • Continuous benchmark compliance for auditsnot AWS CloudFormation
  • Prioritising vulnerabilities by actual exposurenot AWS CloudFormation
  • Routing findings to a SIEM or ticketing systemnot AWS CloudFormation

Where do AWS CloudFormation and AWS Security Hub fall short?

AWS CloudFormation's most cited limit: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it. AWS Security Hub's: depth for Azure and Google Cloud is shallower than a purpose-built multicloud CNAPP. 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

AWS Security Hub

  • The per resource unit model scales with the size of the estate, so large fleets of instances and container images can cost more than expected
  • Its most useful findings come from other paid services such as GuardDuty and Inspector, so Security Hub alone is not detection
  • Depth for Azure and Google Cloud is shallower than a purpose-built multicloud CNAPP
  • The pricing changed to a new model, so older guidance and calculators based on per check pricing no longer apply
  • Partner Extended plan products are billed through AWS, which ties spending to AWS agreements rather than direct negotiation

How much do AWS CloudFormation and AWS Security Hub cost?

AWS CloudFormation is free to use; AWS Security Hub starts at $3.75/mo. 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

AWS Security Hub

$3.75/resource unit per month
  • Essentials$3.75
    • Posture management, risk analytics, and Inspector scans for EC2, ECR and Lambda
    • Covers AWS, Azure and Google Cloud resources
    • 30-day free trial
  • Threat Analytics add-onOn request
    • $4.00 per million CloudTrail management events
    • Volume-based rates for data events, network logs and runtime activity
  • ExtendedOn request
    • Curated partner solutions billed per partner, see the pricing page

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 AWS Security Hub if

  • You need findings aggregation.
  • You also want posture management.

Questions people ask

Is AWS CloudFormation or AWS Security Hub better?
It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; AWS Security Hub fits one place for an AWS-centric security team to triage findings across accounts. AWS CloudFormation starts at Free and AWS Security Hub at $3.75/resource unit per month.
Which is cheaper, AWS CloudFormation or AWS Security Hub?
AWS CloudFormation has a free tier; the other does not. Paid plans start at Free for AWS CloudFormation and $3.75/resource unit per month for AWS Security Hub.
Does AWS CloudFormation or AWS Security Hub run on more platforms?
AWS CloudFormation runs on Web, Linux, macOS, Windows. AWS Security Hub runs on Web.
Can I use AWS CloudFormation for free?
Yes. AWS CloudFormation has a free tier, so you can try it without paying. AWS Security Hub starts at $3.75/resource unit per month.
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 AWS Security Hub is typically brought in for.
What can AWS CloudFormation do that AWS Security Hub cannot?
AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. AWS Security Hub covers Findings aggregation, Posture management, Exposure and risk analytics, Inspector scans included.

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.

AWS Security Hub: How much does Security Hub cost?

The AWS example prices the Essentials plan at $3.75 per resource unit per month, with a 30-day free trial.

AWS CloudFormation: CloudFormation or Terraform?

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

AWS Security Hub: What is a resource unit?

An EC2 instance counts as one; Lambda functions count at one twelfth, per AWS.

AWS CloudFormation: How does CDK relate?

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

AWS Security Hub: Does it replace GuardDuty?

No. GuardDuty detects threats; Security Hub aggregates and prioritises findings.

Share

Related pages

Other head to heads