Software · head to head
AWS CloudFormation vs AWS Secrets Manager

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

AWS Secrets Manager
Software
Managed store for database credentials and API keys with automatic rotation
- From
- $0.4/month
- Free plan
- No
The short version
- AWS CloudFormation is free; AWS Secrets Manager starts at $0.4/mo.
- Only AWS CloudFormation lists stacks and templates; only AWS Secrets Manager lists automatic rotation.
- Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
- Where AWS Secrets Manager falls short: replica secrets are billed as full secrets, which doubles or triples the cost of multi-Region storage.
How do AWS CloudFormation and AWS Secrets Manager differ?
AWS CloudFormation and AWS Secrets Manager differ on starting price (Free against $0.4/month), pricing model and free tier (Yes against No). Only the attributes on which AWS CloudFormation and AWS Secrets Manager actually diverge.
| Attribute | AWS CloudFormation | AWS Secrets Manager |
|---|---|---|
| Starting price | Free | $0.4/month |
| Pricing model | No charge for AWS resource types; extensions per handler operation | Per secret per month plus per 10,000 API calls |
| 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 Secrets Manager. 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 Secrets Manager
- Automatic rotation
- KMS encryption
- Cross-Region replication
- Fine-grained access
- Audit trail
- Versioning
What is each one used for?
AWS CloudFormation is most often brought in for recreating identical dev, staging and production environments on AWS; AWS Secrets Manager for rotating RDS or Aurora database passwords on a schedule without code changes. The jobs each tool is most often brought in to do.
AWS CloudFormation
- Recreating identical dev, staging and production environments on AWSnot AWS Secrets Manager
- Deploying one baseline of security resources across many accounts with StackSetsnot AWS Secrets Manager
- Serverless applications packaged with AWS SAMnot AWS Secrets Manager
- Previewing and auditing infrastructure changes through change setsnot AWS Secrets Manager
AWS Secrets Manager
- Rotating RDS or Aurora database passwords on a schedule without code changesnot AWS CloudFormation
- Giving ECS tasks and Lambda functions credentials at runtime instead of in environment filesnot AWS CloudFormation
- Replicating secrets to a second Region for disaster recoverynot AWS CloudFormation
- Centralising third-party API keys with audit logs for compliancenot AWS CloudFormation
Where do AWS CloudFormation and AWS Secrets Manager fall short?
AWS CloudFormation's most cited limit: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it. AWS Secrets Manager's: replica secrets are billed as full secrets, which doubles or triples the cost of multi-Region storage. 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 Secrets Manager
- The $0.40 per secret fee applies to every secret including rarely used ones, so organisations with thousands of per-service secrets see a steady monthly charge
- Replica secrets are billed as full secrets, which doubles or triples the cost of multi-Region storage
- Rotation for anything other than the supported AWS databases means writing and maintaining your own Lambda function
- It stores static secrets only; unlike HashiCorp Vault it does not issue short-lived dynamic credentials for many targets
- It is AWS-only, so workloads on other clouds or on-premises must call AWS APIs across the network, tying their secret access to AWS availability
How much do AWS CloudFormation and AWS Secrets Manager cost?
AWS CloudFormation is free to use; AWS Secrets Manager starts at $0.4/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 Secrets Manager
$0.4/month- Secrets$0.4/mo
- $0.40 per secret per month, prorated hourly
- Each replica secret is billed as a separate secret
- API callsOn request
- $0.05 per 10,000 API calls
- Rotation, retrieval and management calls all count
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 Secrets Manager if
- You need automatic rotation.
- You also want kms encryption.
Questions people ask
- Is AWS CloudFormation or AWS Secrets Manager better?
- It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; AWS Secrets Manager fits rotating RDS or Aurora database passwords on a schedule without code changes. AWS CloudFormation starts at Free and AWS Secrets Manager at $0.4/month.
- Which is cheaper, AWS CloudFormation or AWS Secrets Manager?
- AWS CloudFormation has a free tier; the other does not. Paid plans start at Free for AWS CloudFormation and $0.4/month for AWS Secrets Manager.
- Does AWS CloudFormation or AWS Secrets Manager run on more platforms?
- AWS CloudFormation runs on Web, Linux, macOS, Windows. AWS Secrets Manager 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 Secrets Manager starts at $0.4/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 Secrets Manager is typically brought in for.
- What can AWS CloudFormation do that AWS Secrets Manager cannot?
- AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. AWS Secrets Manager covers Automatic rotation, KMS encryption, Cross-Region replication, Fine-grained access.
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 Secrets Manager: How much does Secrets Manager cost?
$0.40 per secret per month and $0.05 per 10,000 API calls, per the AWS pricing page. A replica in another Region is billed as another secret.
AWS CloudFormation: CloudFormation or Terraform?
CloudFormation is AWS-only with state managed by AWS; Terraform spans many providers and keeps its own state.
AWS Secrets Manager: Is Secrets Manager cheaper than Parameter Store?
Parameter Store standard parameters carry no charge, so for static values that do not need rotation it is cheaper. Secrets Manager adds rotation and replication.
AWS CloudFormation: How does CDK relate?
CDK lets you write infrastructure in a programming language and synthesises CloudFormation templates.
AWS Secrets Manager: Does it rotate secrets automatically?
Yes. It has managed rotation for supported AWS databases and uses Lambda functions for other secret types.
Related pages
More on AWS CloudFormation
More on AWS Secrets Manager
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 HCP Terraform
- AWS CloudFormation vs Daytona
- AWS CloudFormation vs GitHub
- AWS CloudFormation vs SonarQube
- AWS CloudFormation vs Sublime Text
- AWS CloudFormation vs Buildkite
- AWS CloudFormation vs GitLab CI/CD
- AWS CloudFormation vs Eclipse
- AWS CloudFormation vs Doppler
- AWS CloudFormation vs Infisical
- AWS CloudFormation vs HashiCorp Vault
- AWS CloudFormation vs Keeper Password Manager
- AWS CloudFormation vs Delinea
- AWS CloudFormation vs Aikido
- AWS CloudFormation vs Akeyless
- AWS CloudFormation vs Legit Security
- AWS CloudFormation vs HID Global
- AWS CloudFormation vs Teleport
- AWS CloudFormation vs Bitwarden
- AWS CloudFormation vs NordPass
- AWS CloudFormation vs Norton 360
- AWS CloudFormation vs Dashlane
- AWS CloudFormation vs Mullvad VPN
- AWS CloudFormation vs JumpCloud
- AWS CloudFormation vs Genetec Security Center
- AWS CloudFormation vs Microsoft Sentinel
- AWS Secrets Manager vs Terraform
- AWS Secrets Manager vs Spacelift
- AWS Secrets Manager vs env zero
- AWS Secrets Manager vs Atlantis
- AWS Secrets Manager vs LocalStack
- AWS Secrets Manager vs Coder
- AWS Secrets Manager vs Tilt
- AWS Secrets Manager vs Harness
- AWS Secrets Manager vs Argo CD
- AWS Secrets Manager vs Envoy
- AWS Secrets Manager vs HCP Terraform
- AWS Secrets Manager vs Daytona
- AWS Secrets Manager vs GitHub
- AWS Secrets Manager vs SonarQube
- AWS Secrets Manager vs Sublime Text
- AWS Secrets Manager vs Buildkite
- AWS Secrets Manager vs GitLab CI/CD
- AWS Secrets Manager vs Eclipse
- AWS Secrets Manager vs Doppler
- AWS Secrets Manager vs Infisical
- AWS Secrets Manager vs HashiCorp Vault
- AWS Secrets Manager vs Keeper Password Manager
- AWS Secrets Manager vs Delinea
- AWS Secrets Manager vs Aikido
- AWS Secrets Manager vs Akeyless
- AWS Secrets Manager vs Legit Security
- AWS Secrets Manager vs HID Global
- AWS Secrets Manager vs Teleport
- AWS Secrets Manager vs Bitwarden
- AWS Secrets Manager vs NordPass
- AWS Secrets Manager vs Norton 360
- AWS Secrets Manager vs Dashlane
- AWS Secrets Manager vs Mullvad VPN
- AWS Secrets Manager vs JumpCloud
- AWS Secrets Manager vs Genetec Security Center
- AWS Secrets Manager vs Microsoft Sentinel
