Cloud · head to head
Amazon S3 vs AWS Serverless Application Model (AWS SAM)

Amazon S3
Cloud
Amazon Web Services' pay-as-you-go object storage service
- From
- On request
- Free plan
- No

AWS Serverless Application Model (AWS SAM)
Developer Tools
Open-source framework and CLI for building serverless apps on AWS
- From
- Free
- Free plan
- Yes
The short version
- AWS Serverless Application Model (AWS SAM) is free; Amazon S3 prices on request.
- Only Amazon S3 lists object storage in buckets; only AWS Serverless Application Model (AWS SAM) lists SAM connectors for IAM permissions.
- Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.
- Where AWS Serverless Application Model (AWS SAM) falls short: targets AWS only, so templates are not portable to other cloud providers.
How do Amazon S3 and AWS Serverless Application Model (AWS SAM) differ?
Amazon S3 and AWS Serverless Application Model (AWS SAM) differ on starting price (On request against Free), pricing model (Usage-based against Open-source) and free tier (No against Yes). Only the attributes on which Amazon S3 and AWS Serverless Application Model (AWS SAM) actually diverge.
| Attribute | Amazon S3 | AWS Serverless Application Model (AWS SAM) |
|---|---|---|
| Starting price | On request | Free |
| Pricing model | Usage-based | Open-source |
| Free tier | No | Yes |
| Platforms | Web | Windows, macOS, Linux |
| Category | Cloud | Developer Tools |
Which features does each one have?
They share no listed features; 9 appear only for Amazon S3 and 7 only for AWS Serverless Application Model (AWS SAM). 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 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
Only in AWS Serverless Application Model (AWS SAM)
- SAM template shorthand for CloudFormation
- SAM CLI project scaffolding with sam init
- Local testing of Lambda functions and API endpoints
- sam sync for syncing local changes to the cloud
- SAM connectors for IAM permissions
- Terraform project debugging support
- CI/CD pipeline support
What is each one used for?
Amazon S3 is most often brought in for data lake storage for analytics; AWS Serverless Application Model (AWS SAM) for defining Lambda and API Gateway applications as code. The jobs each tool is most often brought in to do.
Amazon S3
- Data lake storage for analyticsnot AWS Serverless Application Model (AWS SAM)
- Application and mobile app file storagenot AWS Serverless Application Model (AWS SAM)
- Long-term archives in Glacier classesnot AWS Serverless Application Model (AWS SAM)
- Static website hostingnot AWS Serverless Application Model (AWS SAM)
AWS Serverless Application Model (AWS SAM)
- Defining Lambda and API Gateway applications as codenot Amazon S3
- Testing Lambda functions locally before deploymentnot Amazon S3
- Building CI/CD pipelines for serverless appsnot Amazon S3
- Converting console-created resources into templatesnot Amazon S3
Where do Amazon S3 and AWS Serverless Application Model (AWS SAM) fall short?
Amazon S3's most cited limit: billing depends on storage class, requests and transfer, so total cost is hard to predict. AWS Serverless Application Model (AWS SAM)'s: targets AWS only, so templates are not portable to other cloud providers. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
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
AWS Serverless Application Model (AWS SAM)
- Targets AWS only, so templates are not portable to other cloud providers
- Local testing of functions depends on Docker being installed and running
- Requires an AWS account, the AWS CLI and configured credentials before first use
- Declarative templates, so complex logic needs CloudFormation or the AWS CDK instead
- Does not cover non-serverless infrastructure on its own, which falls back to CloudFormation
How much do Amazon S3 and AWS Serverless Application Model (AWS SAM) cost?
AWS Serverless Application Model (AWS SAM) is free to use. Plan by plan below, from each vendor's own pricing page.
Amazon S3
On requestNo published plan breakdown. See the Amazon S3 review.
AWS Serverless Application Model (AWS SAM)
FreeNo published plan breakdown. See the AWS Serverless Application Model (AWS SAM) review.
Which should you pick?
Choose Amazon S3 if
- You need object storage in buckets.
- You also want multiple storage classes including glacier.
Choose AWS Serverless Application Model (AWS SAM) if
- You need sam template shorthand for cloudformation.
- You want to start without paying.
- You work on Windows, macOS, Linux.
- You also want sam cli project scaffolding with sam init.
Questions people ask
- Is Amazon S3 or AWS Serverless Application Model (AWS SAM) better?
- It depends on the job. Amazon S3 fits data lake storage for analytics; AWS Serverless Application Model (AWS SAM) fits defining Lambda and API Gateway applications as code. Amazon S3 starts at On request and AWS Serverless Application Model (AWS SAM) at Free.
- Which is cheaper, Amazon S3 or AWS Serverless Application Model (AWS SAM)?
- AWS Serverless Application Model (AWS SAM) has a free tier; the other does not. Paid plans start at On request for Amazon S3 and Free for AWS Serverless Application Model (AWS SAM).
- Does Amazon S3 or AWS Serverless Application Model (AWS SAM) run on more platforms?
- Amazon S3 runs on Web. AWS Serverless Application Model (AWS SAM) runs on Windows, macOS, Linux.
- Can I use AWS Serverless Application Model (AWS SAM) for free?
- Yes. AWS Serverless Application Model (AWS SAM) has a free tier, so you can try it without paying. Amazon S3 starts at On request.
- What is Amazon S3 best used for?
- Amazon S3 is most often used for data lake storage for analytics, application and mobile app file storage, long-term archives in glacier classes, static website hosting. Of those, data lake storage for analytics and application and mobile app file storage are not what AWS Serverless Application Model (AWS SAM) is typically brought in for.
- What can Amazon S3 do that AWS Serverless Application Model (AWS SAM) cannot?
- Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning. AWS Serverless Application Model (AWS SAM) covers SAM template shorthand for CloudFormation, SAM CLI project scaffolding with sam init, Local testing of Lambda functions and API endpoints, sam sync for syncing local changes to the cloud.
Answered from the vendors’ own pages
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.
SourceAWS Serverless Application Model (AWS SAM): What is AWS SAM?
AWS SAM is an open-source framework for building serverless applications with infrastructure as code. It consists of a template syntax that extends CloudFormation and a command-line tool.
SourceAmazon 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.
SourceAWS Serverless Application Model (AWS SAM): Which operating systems does the SAM CLI support?
AWS publishes installers for Linux on x86_64 and arm64, macOS on Intel and Apple silicon, and a 64-bit Windows MSI. macOS versions older than 13.x are not supported.
SourceAmazon 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.
SourceAWS Serverless Application Model (AWS SAM): What licence does AWS SAM use?
The serverless-application-model repository on GitHub is licensed under Apache-2.0.
SourceAmazon S3: Is S3 versioning on by default?
No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.
SourceAWS Serverless Application Model (AWS SAM): How does SAM differ from the AWS CDK?
The documentation says to use SAM instead of the CDK if you prefer a declarative approach to describing infrastructure rather than a programmatic one. The two can also be combined, using the SAM CLI's local testing with CDK applications.
SourceRelated pages
More on AWS Serverless Application Model (AWS SAM)
Other head to heads
- Amazon S3 vs Wasabi
- Amazon S3 vs Google Cloud Platform
- Amazon S3 vs Microsoft Azure
- Amazon S3 vs Rook
- Amazon S3 vs Scaleway
- Amazon S3 vs Google Cloud Run
- Amazon S3 vs Vultr
- Amazon S3 vs Confluent Cloud
- Amazon S3 vs Portworx
- Amazon S3 vs Northflank
- Amazon S3 vs Podman
- Amazon S3 vs Alibaba Cloud
- Amazon S3 vs Serverless Framework
- Amazon S3 vs Wiz
- Amazon S3 vs Anyscale
- Amazon S3 vs Thanos
- Amazon S3 vs Longhorn
- Amazon S3 vs minikube
- Amazon S3 vs Terraform
- Amazon S3 vs LocalStack
- Amazon S3 vs Spacelift
- Amazon S3 vs Atlantis
- Amazon S3 vs Backstage
- Amazon S3 vs PDAL
- Amazon S3 vs Claude Code
- Amazon S3 vs Harness
- Amazon S3 vs Losant
- Amazon S3 vs PartyKit
- Amazon S3 vs Webpack
- Amazon S3 vs Garden
- Amazon S3 vs Pieces for Developers
- Amazon S3 vs Portainer
- Amazon S3 vs RubyMine
- Amazon S3 vs Sourcegraph
- Amazon S3 vs Sourcetree
- Amazon S3 vs Anvil
- AWS Serverless Application Model (AWS SAM) vs Wasabi
- AWS Serverless Application Model (AWS SAM) vs Google Cloud Platform
- AWS Serverless Application Model (AWS SAM) vs Microsoft Azure
- AWS Serverless Application Model (AWS SAM) vs Rook
- AWS Serverless Application Model (AWS SAM) vs Scaleway
- AWS Serverless Application Model (AWS SAM) vs Google Cloud Run
- AWS Serverless Application Model (AWS SAM) vs Vultr
- AWS Serverless Application Model (AWS SAM) vs Confluent Cloud
- AWS Serverless Application Model (AWS SAM) vs Portworx
- AWS Serverless Application Model (AWS SAM) vs Northflank
- AWS Serverless Application Model (AWS SAM) vs Podman
- AWS Serverless Application Model (AWS SAM) vs Alibaba Cloud
- AWS Serverless Application Model (AWS SAM) vs Serverless Framework
- AWS Serverless Application Model (AWS SAM) vs Wiz
- AWS Serverless Application Model (AWS SAM) vs Anyscale
- AWS Serverless Application Model (AWS SAM) vs Thanos
- AWS Serverless Application Model (AWS SAM) vs Longhorn
- AWS Serverless Application Model (AWS SAM) vs minikube
- AWS Serverless Application Model (AWS SAM) vs Terraform
- AWS Serverless Application Model (AWS SAM) vs LocalStack
- AWS Serverless Application Model (AWS SAM) vs Spacelift
- AWS Serverless Application Model (AWS SAM) vs Atlantis
- AWS Serverless Application Model (AWS SAM) vs Backstage
- AWS Serverless Application Model (AWS SAM) vs PDAL
- AWS Serverless Application Model (AWS SAM) vs Claude Code
- AWS Serverless Application Model (AWS SAM) vs Harness
- AWS Serverless Application Model (AWS SAM) vs Losant
- AWS Serverless Application Model (AWS SAM) vs PartyKit
- AWS Serverless Application Model (AWS SAM) vs Webpack
- AWS Serverless Application Model (AWS SAM) vs Garden
- AWS Serverless Application Model (AWS SAM) vs Pieces for Developers
- AWS Serverless Application Model (AWS SAM) vs Portainer
- AWS Serverless Application Model (AWS SAM) vs RubyMine
- AWS Serverless Application Model (AWS SAM) vs Sourcegraph
- AWS Serverless Application Model (AWS SAM) vs Sourcetree
- AWS Serverless Application Model (AWS SAM) vs Anvil
