Skip to content

Unable to access S3 via SGW

0

Unable to access shares created in S3 via Storage Gateway. I do not see respective SGW listed under 'Gateways'.

asked a year ago210 views

2 Answers
0

It sounds like your Storage Gateway and its associated file shares are no longer visible in the AWS Storage Gateway console. This can happen for several reasons:

  1. Wrong AWS region selected: The most common reason for a gateway "disappearing" is that you're looking in a different region than where it was created. Check the region selector in the upper right corner of the AWS console and make sure you're in the correct region.

  2. Gateway deletion: A gateway can disappear if someone called the DeleteGateway API. You can check CloudTrail logs to see if this happened:

  • Open the CloudTrail console in the region where you created the gateway
  • Go to "Event history" view
  • Filter by "Event name" and enter "DeleteGateway"
  • Check the results to see if and when the gateway was deleted, and by whom
  1. Find gateways across all regions: You can use AWS CloudShell to find all Storage Gateways across all regions in your account with this command:
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text)
do
echo "** ${region}"
aws storagegateway list-gateways --region ${region}
done
  1. Access permissions: If you're seeing S3AccessDenied errors, the IAM role associated with your file share might not have the necessary permissions. The role needs permissions for operations like:
  • S3HeadObject
  • S3GetObject
  • S3ListObjects
  • S3DeleteObject
  • S3PutObject

If you find your gateway in another region, you can continue using it there. If it was deleted, you'll need to create a new gateway and reconfigure your file shares.
Sources
AWS Storage Gateway and File Share disappeared from web console overnight. | AWS re:Post
Troubleshooting: File Gateway issues - AWS Storage Gateway

answered a year ago

EXPERT

reviewed a year ago

0

Hi Ezra, It is not clear from your message if you have already successfully created a File S3 Storage Gateway and created shares on the Gateway to access S3 objects through the Gateway. Please see the getting started guide in case you have not created these resources already. Thank you

AWS

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.