Connecting On-Premises Applications to Cloud Storage with Storage Gateway
This lesson explains how Storage Gateway connects on-premises applications to cloud storage through standard protocols, with a local cache for low latency.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish the gateway types.
- Identify typical hybrid storage scenarios.
- Explain how cache size and bandwidth affect a gateway.
Gateway types
AWS Storage Gateway connects on-premises applications to AWS storage through standard storage protocols, so the applications need no changes. The gateway runs as a virtual machine (VMware, Hyper-V or KVM), a hardware appliance or an EC2 instance, and keeps a local cache for fast access to recent data. There are four types.
An S3 File Gateway presents NFS or SMB file shares and stores each file as an object in S3, where it can also be used by cloud applications and lifecycle rules. A Volume Gateway presents iSCSI block volumes. With cached volumes, the primary data lives in S3 and only frequently used data is cached locally, which extends on-premises capacity. With stored volumes, the full dataset stays on premises for low-latency access and is backed up asynchronously to S3 as EBS snapshots. A Tape Gateway presents a virtual tape library to existing backup software and stores the virtual tapes in S3, archiving them to Glacier Flexible Retrieval or Deep Archive, which replaces physical tapes. The following table summarises the types.
| Type | Protocol | How data is stored |
|---|---|---|
| S3 File Gateway | NFS, SMB | One S3 object per file, with a local cache |
| Volume Gateway, cached volumes | iSCSI | Primary data in S3; frequently used data cached locally (extends capacity) |
| Volume Gateway, stored volumes | iSCSI | Full dataset on premises; async backups to S3 as EBS snapshots |
| Tape Gateway | iSCSI VTL | Virtual tapes in S3, archived to Glacier Flexible Retrieval or Deep Archive |
The following diagram shows each gateway type from the on-premises protocol to the AWS storage.

Which gateway type?
Typical scenarios
AWS Storage Gateway appears in a few typical hybrid scenarios. S3 File Gateway is often a first step to the cloud: on-premises applications keep writing files to an NFS or SMB share, while the files are stored as objects in Amazon S3, where services such as Amazon Athena, AWS Glue and AWS Lambda can use them.
Tape Gateway replaces physical tape libraries with virtual tapes stored in Amazon S3 and S3 Glacier, with no change to backup software such as Veeam, NetBackup or Backup Exec, which continue to write to what they see as a tape library. Amazon FSx File Gateway is closed to new customers, so new designs access Amazon FSx directly over the network instead.
Sizing and bandwidth
A gateway keeps recently used data in a local cache, so users get local performance for data they work with often. The cache should therefore be sized for the working set, the data accessed regularly, so that users rarely wait for data to be fetched from AWS.
Uploads to AWS happen asynchronously and are limited by the available bandwidth. Bandwidth throttling can schedule heavy uploads outside business hours, so they do not compete with users for the network connection.
Three on-premises storage problems
Storage Gateway offers several gateway types for different on-premises problems. The following table identifies the appropriate solution for three such problems.
| Problem | Gateway type |
|---|---|
| Applications write files to a NAS that is full; files should land in S3 | S3 File Gateway |
| Branch offices need access to central Windows shares in AWS | None: use FSx for Windows File Server directly over VPN or Direct Connect (FSx File Gateway is closed to new customers) |
| Backup software writes to a physical tape library that is expensive to maintain | Tape Gateway |
| Applications need iSCSI block storage backed up to AWS | Volume Gateway |
Each gateway keeps a local cache for low-latency access to recent data while the full data set lives in AWS, and existing applications keep using the protocols they already understand.
Which gateway type replaces a tape library while keeping existing backup software?
Show answer
Tape Gateway, which presents a virtual tape library and stores tapes in S3 and Glacier storage classes.
Exam Tips
Remember for the exam
- When on-premises applications need NFS or SMB access to data stored in S3, use an S3 File Gateway.
- To keep all data on premises with backups in the cloud use stored volumes; to extend capacity use cached volumes.
- To replace physical tapes without changing backup software, use a Tape Gateway.
- When users wait for files from the gateway, enlarge the local cache to hold the working set.
- When on-premises applications write files that cloud analytics must read, use an S3 File Gateway.