Softwr

Cloud · head to head

AWS CloudFormation vs Amazon S3

AWS CloudFormation logo

AWS CloudFormation

Cloud

Declarative infrastructure as code for AWS, free for AWS resources

From
Free
Free plan
Yes
Amazon S3 logo

Amazon S3

Cloud

Amazon Web Services' pay-as-you-go object storage service

From
On request
Free plan
No

The short version

  • AWS CloudFormation is free; Amazon S3 prices on request.
  • Only AWS CloudFormation lists stacks and templates; only Amazon S3 lists object storage in buckets.
  • Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
  • Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.

How do AWS CloudFormation and Amazon S3 differ?

AWS CloudFormation and Amazon S3 differ on starting price (Free against On request), pricing model and free tier (Yes against No). Only the attributes on which AWS CloudFormation and Amazon S3 actually diverge.

Attributes where AWS CloudFormation and Amazon S3 differ
AttributeAWS CloudFormationAmazon S3
Starting priceFreeOn request
Pricing modelNo charge for AWS resource types; extensions per handler operationUsage-based
Free tierYesNo
PlatformsWeb, Linux, macOS, WindowsWeb

Not yet recorded: category for AWS CloudFormation.

Which features does each one have?

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

  • Object storage in buckets
  • Multiple storage classes including Glacier
  • S3 Intelligent-Tiering
  • Versioning
  • Replication
  • Encryption by default
  • Static website hosting
  • Time-limited authenticated URLs

What is each one used for?

AWS CloudFormation is most often brought in for recreating identical dev, staging and production environments on AWS; Amazon S3 for data lake storage for analytics. The jobs each tool is most often brought in to do.

AWS CloudFormation

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

Amazon S3

  • Data lake storage for analyticsnot AWS CloudFormation
  • Application and mobile app file storagenot AWS CloudFormation
  • Long-term archives in Glacier classesnot AWS CloudFormation
  • Static website hostingnot AWS CloudFormation

Where do AWS CloudFormation and Amazon S3 fall short?

AWS CloudFormation's most cited limit: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it. Amazon S3's: billing depends on storage class, requests and transfer, so total cost is hard to predict. 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

Amazon S3

  • Billing depends on storage class, requests and transfer, so total cost is hard to predict
  • Outbound internet data transfer is charged beyond the first 100 GB per month
  • Objects larger than 5 GB need multipart upload because single uploads are capped at 5 GB
  • Versioning is disabled by default and must be switched on per bucket
  • Available only on AWS; moving data elsewhere means egress and re-integration work

How much do AWS CloudFormation and Amazon S3 cost?

AWS CloudFormation 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

Amazon S3

On request

No published plan breakdown. See the Amazon S3 review.

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 Amazon S3 if

  • You need object storage in buckets.
  • You also want multiple storage classes including glacier.

Questions people ask

Is AWS CloudFormation or Amazon S3 better?
It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; Amazon S3 fits data lake storage for analytics. AWS CloudFormation starts at Free and Amazon S3 at On request.
Which is cheaper, AWS CloudFormation or Amazon S3?
AWS CloudFormation has a free tier; the other does not. Paid plans start at Free for AWS CloudFormation and On request for Amazon S3.
Does AWS CloudFormation or Amazon S3 run on more platforms?
AWS CloudFormation runs on Web, Linux, macOS, Windows. Amazon S3 runs on Web.
Can I use AWS CloudFormation for free?
Yes. AWS CloudFormation has a free tier, so you can try it without paying. Amazon S3 starts at On request.
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 Amazon S3 is typically brought in for.
What can AWS CloudFormation do that Amazon S3 cannot?
AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning.

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.

Amazon S3: What is Amazon S3?

Amazon S3 is an object storage service from AWS, described as built to retrieve any amount of data from anywhere. It is used for data lakes, cloud-native applications and mobile apps.

Source
AWS CloudFormation: CloudFormation or Terraform?

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

Amazon S3: How is S3 priced?

AWS says the cost depends on object size, storage duration and storage class, with no minimum charge. Inbound transfer from the internet is free, as are transfers between buckets in the same Region, and the first 100 GB per month out to the internet is free.

Source
AWS CloudFormation: How does CDK relate?

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

Amazon S3: What is the maximum object size in S3?

Objects can be up to 5 TB. A single upload operation is capped at 5 GB, so larger objects use the multipart upload API.

Source
Amazon S3: Is S3 versioning on by default?

No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.

Source
Share

Related pages

Other head to heads