Software · head to head
AWS CloudFormation vs AWS Security Hub

AWS CloudFormation
Software
Declarative infrastructure as code for AWS, free for AWS resources
- From
- Free
- Free plan
- Yes

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.
| Attribute | AWS CloudFormation | AWS Security Hub |
|---|---|---|
| Starting price | Free | $3.75/resource unit per month |
| Pricing model | No charge for AWS resource types; extensions per handler operation | Per resource unit per month, plus add-ons |
| Free tier | Yes | No |
| Platforms | Web, Linux, macOS, Windows | Web |
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.
Related pages
More on AWS CloudFormation
More on AWS Security Hub
Keep looking
Other head to heads
- AWS CloudFormation vs Terraform
- AWS CloudFormation vs Spacelift
- AWS CloudFormation vs env zero
- AWS CloudFormation vs Atlantis
- AWS CloudFormation vs LocalStack
- AWS CloudFormation vs Coder
- AWS CloudFormation vs Tilt
- AWS CloudFormation vs Harness
- AWS CloudFormation vs Argo CD
- AWS CloudFormation vs Envoy
- AWS CloudFormation vs Daytona
- AWS CloudFormation vs HCP Terraform
- AWS CloudFormation vs Maizzle
- AWS CloudFormation vs MJML
- AWS CloudFormation vs Nhost
- AWS CloudFormation vs OrbStack
- AWS CloudFormation vs PhpStorm
- AWS CloudFormation vs Pieces for Developers
- AWS CloudFormation vs Palo Alto Networks Prisma Cloud
- AWS CloudFormation vs Microsoft Sentinel
- AWS CloudFormation vs CrowdStrike Falcon Cloud Security
- AWS CloudFormation vs Tenable
- AWS CloudFormation vs DataGrail
- AWS CloudFormation vs ZenGRC
- AWS CloudFormation vs OneTrust
- AWS CloudFormation vs JumpCloud
- AWS CloudFormation vs Genetec Security Center
- AWS CloudFormation vs Veracode
- AWS CloudFormation vs BigID
- AWS CloudFormation vs ConnectWise Automate
- AWS CloudFormation vs CookieYes
- AWS CloudFormation vs Cortex Xpanse
- AWS CloudFormation vs Microsoft Defender for Cloud
- AWS CloudFormation vs CrowdStrike Falcon Complete
- AWS CloudFormation vs Cortex XSIAM
- AWS CloudFormation vs CrowdStrike Falcon Next-Gen SIEM
- AWS Security Hub vs Terraform
- AWS Security Hub vs Spacelift
- AWS Security Hub vs env zero
- AWS Security Hub vs Atlantis
- AWS Security Hub vs LocalStack
- AWS Security Hub vs Coder
- AWS Security Hub vs Tilt
- AWS Security Hub vs Harness
- AWS Security Hub vs Argo CD
- AWS Security Hub vs Envoy
- AWS Security Hub vs Daytona
- AWS Security Hub vs HCP Terraform
- AWS Security Hub vs Maizzle
- AWS Security Hub vs MJML
- AWS Security Hub vs Nhost
- AWS Security Hub vs OrbStack
- AWS Security Hub vs PhpStorm
- AWS Security Hub vs Pieces for Developers
- AWS Security Hub vs Palo Alto Networks Prisma Cloud
- AWS Security Hub vs Microsoft Sentinel
- AWS Security Hub vs CrowdStrike Falcon Cloud Security
- AWS Security Hub vs Tenable
- AWS Security Hub vs DataGrail
- AWS Security Hub vs ZenGRC
- AWS Security Hub vs OneTrust
- AWS Security Hub vs JumpCloud
- AWS Security Hub vs Genetec Security Center
- AWS Security Hub vs Veracode
- AWS Security Hub vs BigID
- AWS Security Hub vs ConnectWise Automate
- AWS Security Hub vs CookieYes
- AWS Security Hub vs Cortex Xpanse
- AWS Security Hub vs Microsoft Defender for Cloud
- AWS Security Hub vs CrowdStrike Falcon Complete
- AWS Security Hub vs Cortex XSIAM
- AWS Security Hub vs CrowdStrike Falcon Next-Gen SIEM
