Lesson 4 of 5 Storage Architecture

Extending On-Premises Storage to AWS with Storage Gateway

This lesson explains how AWS Storage Gateway presents AWS storage through familiar protocols with a local cache, so applications that remain on premises can store data in AWS without changes.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish S3 File Gateway, FSx File Gateway, Volume Gateway and Tape Gateway.
  • Describe how a gateway is deployed with a local cache.
  • Distinguish cached from stored volumes.

Gateway types

Storage Gateway runs on premises and gives local applications access to AWS storage through familiar interfaces, with a local cache for performance. An S3 File Gateway presents NFS or SMB shares whose files are stored as S3 objects, so on-premises applications can write to a data lake or back up to S3. An FSx File Gateway provides a local cache for FSx for Windows File Server, giving branch offices low-latency access to central Windows shares. A Volume Gateway presents iSCSI volumes, cached or stored, backed up as EBS snapshots, for block storage backup and disaster recovery. A Tape Gateway presents a virtual tape library, so backup software can write to S3 and S3 Glacier instead of physical tape, without changing. The following table summarises the types.

Gateway typePresentsUse
S3 File GatewayNFS or SMB shares backed by S3 objectsOn-premises applications writing to a data lake; backups to S3
FSx File GatewayLocal cache for FSx for Windows File ServerBranch offices accessing central Windows shares with low latency
Volume GatewayiSCSI volumes (cached or stored) with EBS snapshotsBlock storage backup and DR
Tape GatewayA virtual tape libraryReplacing physical tape with S3 Glacier, without changing backup software

The following diagram shows what each gateway type presents on premises and where the data lands in AWS.

The four Storage Gateway types. An S3 File Gateway presents NFS or SMB shares whose files are stored as S3 objects. An FSx File Gateway caches FSx for Windows File Server shares locally for branch offices. A Volume Gateway presents iSCSI volumes backed up as EBS snapshots. A Tape Gateway presents a virtual tape library that writes to S3 and S3 Glacier.
Every type keeps a local cache, so active data is read at local speed while the data itself is stored in AWS.
Sort into groups

Which gateway type?

Exam skills 1.3.2

Choose the Storage Gateway type for each requirement.

Log in to try this activity Interactive activities are free with an account.

Deployment

The gateway runs on premises as a virtual machine on VMware, Hyper-V or KVM, or as a hardware appliance, and can also run as an EC2 instance. A local cache keeps recently used data on premises, so reads of active data have local latency, while data is uploaded to AWS asynchronously; the cache is sized for the working set, not for the whole dataset.

Gateways can use VPC endpoints, so their traffic stays on Direct Connect or VPN rather than the internet. Files written through an S3 File Gateway become ordinary S3 objects, which other AWS services, such as analytics or machine learning, can process directly without going through the gateway.

Cached or stored volumes

Volume Gateway has two modes, which differ in where the primary copy lives. Cached volumes keep the primary data in AWS and only frequently accessed data locally, which minimises on-premises storage and suits large volumes whose working set is small. Stored volumes keep all data locally and back it up asynchronously to AWS as snapshots, which gives low-latency access to the whole dataset and an offsite copy for recovery. In both modes, snapshots can be restored as EBS volumes, which allows recovery into AWS.

Worked example

Replacing a tape library

A company's backup software writes to an ageing tape library, and tapes are shipped offsite weekly. The company wants to stop handling tapes without changing its backup software or procedures. A Tape Gateway presents a virtual tape library over iSCSI, which the backup software uses as before. Virtual tapes are stored in S3 and, when ejected, archived to S3 Glacier Flexible Retrieval or Deep Archive, which replaces offsite tape storage at lower cost and with eleven nines of durability.

Check yourself

What is the difference between cached and stored volumes in Volume Gateway?

Show answer

Cached volumes keep the primary data in S3 and frequently accessed data on premises. Stored volumes keep all data on premises and back it up to S3 asynchronously as snapshots.

Exam Tips

Remember for the exam

  • To replace physical tapes without changing backup software, use Tape Gateway.
  • For on-premises applications writing files that land as S3 objects, use S3 File Gateway.
  • For low-latency branch access to FSx for Windows File Server, use FSx File Gateway.
  • Cached volumes keep primary data in AWS; stored volumes keep it on premises.
  • Storage Gateway can use VPC endpoints to keep traffic on private connectivity.