> For the complete documentation index, see [llms.txt](https://mamawhocode.gitbook.io/aws/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mamawhocode.gitbook.io/aws/services/storage/storage-gateway.md).

# Storage gateway

hybrid cloud for storage

## Overview

* <mark style="color:red;">Bridge</mark> between on-premises & cloud&#x20;

  <figure><img src="https://2259236002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuh9xZDZ53qGqmMCM44PU%2Fuploads%2Fgit-blob-cf982b0c471464c5979d7e28017497954a0aa31f%2FREADME_20230523233238.png?alt=media" alt="" width="375"><figcaption><p>hybrid cloud for storage</p></figcaption></figure>
* Providing `low-latency` access to data by *<mark style="color:red;">caching frequently accessed</mark>* data on-premises while storing archive data securely and durably in Amazon cloud storage services.

## 4 types

### S3 file gateway

<figure><img src="https://2259236002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuh9xZDZ53qGqmMCM44PU%2Fuploads%2F5Bt17evID2WpkMe2XUsK%2Fimage.png?alt=media&amp;token=0e03656d-4b8a-4ca5-a337-e791e9d1b07b" alt=""><figcaption><p>S3 File Gateway</p></figcaption></figure>

* S3 buckets are accessible using **NFS** & **SMB protocols**.
* Most recent used data are cached in the file gateway.
* Bucket access using IAM role for each file gateway
* SMB protocol is integrated with AD (Active Directory) for user authentication.

### FSx file gateway

<figure><img src="https://2259236002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuh9xZDZ53qGqmMCM44PU%2Fuploads%2FeY8Y6dGzODlvKTldtGBt%2Fimage.png?alt=media&amp;token=d956f907-df49-46fd-bc38-1a557c7aeba1" alt=""><figcaption><p>native access for Window File Server</p></figcaption></figure>

* Local cache for frequently accessed data.
* Window native compatability (SMB[^1]<mark style="color:red;">, NTFS, AD.</mark>..)

### Volume gateway

<figure><img src="https://2259236002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuh9xZDZ53qGqmMCM44PU%2Fuploads%2FU5pFMDn2mcLPtiBolMJS%2Fimage.png?alt=media&amp;token=bdfed5a3-3728-446b-bb83-68d47368ad71" alt=""><figcaption><p>block storage using iSCSI protocol</p></figcaption></figure>

* Block storage using iSCSI protocol backed by S3.
  * **Stored volume**: stores the entire data set on-premises and asynchronously backs up the data to AWS.
  * **Cached volume**: stores *recently accessed* data on-premises, and the remaining data is stored in Amazon S3.
* Backup: using this can backup on-prem data using EBS volume

### Tape gateway

<figure><img src="https://2259236002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuh9xZDZ53qGqmMCM44PU%2Fuploads%2FZAzjEffVpshZFV4BuhXq%2Fimage.png?alt=media&amp;token=53718fa7-05fd-4eb6-bb9f-5ab05d7403ba" alt=""><figcaption><p>tape gateway backed by S3 &#x26; Glacier</p></figcaption></figure>

* Virtual Tape Library (VTL) backed by using S3 and Glacier.
* Backup data using tape-based process (iSCSI protocol)

## Use cases

* Disaster recovery
* Backup & restore
* On-prem cache & low latency file access

[^1]: It's a network communication protocol used by Windows-based computers and file servers to share files, printers, and other resources across a network
