Storage Gateway and workload selection
Hybrid storage and local caching
AWS Storage Gateway connects existing environments to cloud storage while presenting familiar storage interfaces. A gateway is useful when an application cannot immediately switch to an object API. S3 File Gateway exposes NFS or SMB shares and maps files to objects in an S3 bucket. A local cache serves frequently read content and buffers writes that upload asynchronously. A successful local write is not proof that the corresponding cloud object is already durable. Protect the cache and verify uploads before shutting down a gateway.
Gateway choices and boundaries
Volume Gateway presents iSCSI block devices to applications; cached volumes keep primary data in cloud-backed storage, while stored volumes keep primary data locally and use cloud backups. Tape Gateway presents a virtual tape library for compatible backup software. FSx File Gateway is a different product from Amazon FSx itself and stopped accepting new customers on October 28, 2024; existing customers may continue using it according to the current documentation. Do not base a new-customer lab on it. S3 File Gateway does not provide every traditional file-system feature, such as NFS file locking, so do not substitute it blindly for a database disk or shared filesystem requiring locks. Coordinate direct S3 changes with gateway cache refresh and application consistency.
Decision worksheet: block, file or object
Choose block storage such as EBS when a compatible EC2 application needs a disk and manages its own file system. Choose EFS when Linux clients require ordinary shared NFS files, or a specific FSx family when specialized file-system features are mandatory. Choose S3 for objects such as immutable reports and application-managed uploads. For an existing on-premises report exporter that can write SMB but cannot use S3 APIs, investigate S3 File Gateway if its semantics are sufficient. Keep the bucket private, restrict gateway and share identities, protect transport as supported, and monitor upload backlog. Separate migration from ongoing shared-file access; a one-time migration might not require a permanent gateway.
Estimate cost without a cloud account
Assume fictional rates for a monthly design worksheet: 200 GB of object storage at $0.02/GB-month, 50 GB of transfer at $0.08/GB and 100 GB of local cache at $0.05/GB-month. The modeled subtotal is $4 + $4 + $5 = $13. These are invented unit prices, not AWS quotations; actual estimates must include gateway fees, requests, backup, retrieval, network and host costs as applicable, and use dated regional rates. For a cache example, 75 hits out of 100 equal-sized reads give a 75% request hit ratio. Neither that ratio nor the subtotal predicts latency or service availability. Measure with a controlled workload if later authorized.
Practice: verify before retiring a gateway
A fictional branch has three pending uploads when its migration window ends. Do not destroy the cache. Stop new writes in the approved workflow, confirm the pending queue drains, inspect cloud object inventory and compare checksums or application-level contents using approved methods. Restore a sample to a separate destination, verify read permission and confirm the owner approves teardown. Retain required data and backups, remove only lab-owned infrastructure and recheck charges. In this course, perform the checklist on synthetic records only. Next chapter: Amazon RDS and Aurora.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Storage Gateway and workload selection — knowledge check
Apply shared and hybrid storage concepts to fictional workloads.
An existing SMB report exporter cannot call S3 APIs. Which gateway is worth evaluating?
A local file write succeeded but the upload queue has pending data. What should happen before teardown?
A legacy backup application needs a virtual tape library. Which gateway matches?
At hypothetical rates, 200 GB at $0.02 and 50 GB transfer at $0.08 plus $5 cache cost total what?
An application requires a normal NFS shared filesystem with locking. Why not choose S3 File Gateway automatically?