Open In App

Creating a gateway | AWS Storage Gateway

In this article, we will explore the process of creating, deploying, and activating a file gateway.

Choosing a gateway type

With the help of a file gateway, you store and retrieve objects in Amazon S3 using a local cache for low latency access to  the most recently used data.



To choose a gateway type:

Choosing a host platform and downloading the VM

If you make your gateway on an Amazon EC2 instance, you need to launch an Amazon Machine Image (AMI) that has the gateway VM image, and then you will need to activate the gateway. 



To choose a host platform and download the VM:

Example:

Following is a virt-install command for installing KVM:

virt-install --name "SGW_KVM" --description "SGW KVM" 
--os-type=generic --ram=32768 --vcpus=16
--disk path=fgw-kvm.qcow2,bus=virtio,size=80,sparse=false 
--disk path=fgw-kvm-cache.qcow2,bus=virtio,size=1024,sparse=false 
--network default,model=virtio --graphics none --import

Choosing a service endpoint

You can activate your gateway using:

To choose a service endpoint:

 

This procedure assumes that you are activating your gateway with a public endpoint. For information about how to activate a gateway using a VPC endpoint.

Connecting to the gateway

To connect to your gateway, the first thing to do is get the IP address of your gateway VM. Use that IP address to activate your gateway. For gateways that are deployed and activated on an on-premises host, you can get the IP address through your gateway VM local console or your respective hypervisor client. 

Your gateway VM needs to be running for activation to succeed. It is also important to make sure that the correct gateway type is selected. 

To get the IP address for your gateway VM from the local console:

Log on to the gateway VM local console and select any of the following:

To get the IP address from an EC2 instance:

To associate your gateway with your AWS account:

Activating the gateway

The gateway type, endpoint type, and AWS Region as chosen by you are shown on the activation page.

To activate your gateway:

To complete the activation process, give the information on the activation page:

The following screenshot shows the activation page for a file gateway.

Article Tags :