Lesson 1 of 4 Hybrid Storage and Data Transfer

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.

TypeProtocolHow data is stored
S3 File GatewayNFS, SMBOne S3 object per file, with a local cache
Volume Gateway, cached volumesiSCSIPrimary data in S3; frequently used data cached locally (extends capacity)
Volume Gateway, stored volumesiSCSIFull dataset on premises; async backups to S3 as EBS snapshots
Tape GatewayiSCSI VTLVirtual 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.

The Storage Gateway types. An S3 File Gateway presents NFS or SMB shares and stores each file as an S3 object. A Volume Gateway presents iSCSI volumes: cached volumes keep primary data in S3, stored volumes keep it on premises and back it up to S3 as EBS snapshots. A Tape Gateway presents a virtual tape library and archives tapes to the Glacier classes.
The decisive question is where the primary copy of the data lives: in S3, or on premises with S3 as backup.
Sort into groups

Which gateway type?

Exam skills 3.5.3 · 4.1.6

Choose the Storage Gateway type for each requirement.

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

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.

Worked example

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.

ProblemGateway type
Applications write files to a NAS that is full; files should land in S3S3 File Gateway
Branch offices need access to central Windows shares in AWSNone: 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 maintainTape Gateway
Applications need iSCSI block storage backed up to AWSVolume 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.

Check yourself

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.