Moving to the cloud is not always as easy as flipping a switch. For companies that still trust local data centers but want to take advantage of the unlimited space for cloud storage, AWS’s Storage Gateway can provide direct access to S3.
Types of storage gateway
Storage Gateway is a cloud storage solution that is intended to be distributed locally. You install the software on a device in your rack. It connects to Amazon S3 and provides more traditional file-based and block-level access, which makes the transition to the cloud much easier without requiring major reworking of existing application infrastructure.
In addition, the Storage Gateway can be configured as a cache for frequent access to data in S3, which can speed up access from connected applications. If your local applications suffer from performance from having to access S3 over the internet (or use AWS Direct Connect), Storage Gateway can provide a speed boost by storing important things locally.
Storage Gateway has a few different types, each with its own prices. In general, you pay for stored data as well as for data written to the gateway.
The first type is File Gateway, which is the most common and simply provides file level access for storing data in S3. Data is stored on the device that runs the Storage Gateway and uses as much space as you allocate. File gateway charges standard S3 rates, as well as $ 0.01per GB of written data.
The other main type is Volume Gateway, which provides more traditional block-level access and can be used to create an iSCSI block storage volume with S3. The volume gateway also creates regular backups at the time with EBS snapshots. There are two configurations for volume gateways – cached volumes, which act as File Gateway and cache cloud content locally for performance, and stored volumes, which store all data locally but use S3 for off-site backup. Volume Gateway charges $ 0.023 per GB of monthly stored data, as well as $ 0.01 per GB of written data.
Finally, there is the Virtual Tape Gateway, which provides access to the S3 in a tape-based format. Companies that are stuck in older systems and still use bandbacks are more common than you might think, and this option gives them an easy way to modernize their storage without breaking any underlying system that relies on bandbacks. Tape Gateway charges $ 0.023 per GB of stored data, as well as various transfer fees, but you can also use S3 Glacier and Deep Archive.
How to get started
To get started, go to the Storage Gateway Management Console and create a new gateway. Select the type you want to use and click next.
You need to set the gateway on your device. You can do this with a VMWare ESXi, Hyper-V or Linux KVM image. If you click on “Set up instructions”, you can see the instructions for the current platform. Alternatively, you can purchase the AWS $ 12,000 box that comes pre-installed.
Once set, enter the IP address of your gateway. This does not have to be a public IP, but it must be accessible from your browser.
On the activation screen, enter all the necessary details to link your gateway, such as gateway type, endpoint name, and AWS region.
Next, you want to configure which disks to assign to the gateway. If you do not see your disks in the list, click update and make sure they are available for the World Cup image.
If you want to set up CloudWatch logs, you can do so on the next screen. Select “Create New Log Group” to be redirected to the CloudWatch console for installation.
Once the gateway has been created, you can start creating a file resource that can be accessed via NFS or SMB. You can have multiple file shares on the same gateway, connected to different buckets. You can read more about working with Storage Gateways in AWS documentation on managing them.