# Storage gateway

## Overview

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

  <figure><img src="/files/Yr9P5CB79qmddVGBFMYJ" 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="/files/J4VzIcKWTbcIekN2StNr" 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="/files/aDMvHCQWtacudzetAxLA" 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="/files/PKJjevthlGky8sXJOT7u" 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="/files/Q133cmSSEgZ0QwDdsZ5Q" 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mamawhocode.gitbook.io/aws/services/storage/storage-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
