Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find S3 endpoint or NAT gateway for subnetId

I am unable to connect AWS Glue with RDS

VPC S3 endpoint validation failed for SubnetId: subnet-7e8a2. VPC: vpc-4d2d25. Reason: Could not find S3 endpoint or NAT gateway for subnetId: subnet-7ea32 in Vpc vpc-4d225.

like image 621
user11448446 Avatar asked May 03 '19 15:05

user11448446


People also ask

Could not find S3 gateway endpoint or NAT gateway for subnetId?

Error: Could not find S3 endpoint or NAT gateway for subnetId in VPC. Check the subnet ID and VPC ID in the message to help you diagnose the issue. Check that you have an Amazon S3 VPC endpoint set up, which is required with AWS Glue. In addition, check your NAT gateway if that's part of your configuration.

Can't connect to S3 endpoint?

To troubleshoot this error, check the following: Confirm that you're using the correct AWS Region and Amazon S3 endpoint. Verify that your network can connect to those Amazon S3 endpoints. Verify that your DNS can resolve to those Amazon S3 endpoints.

How do I access S3 from VPC endpoint?

In the navigation pane, under Virtual Private Cloud, choose Route Tables. Choose the route table associated with the VPC subnet that has Amazon S3 connectivity issues. Choose the Routes view. Confirm that there's a route to Amazon S3 using the gateway VPC endpoint.

Why can't I connect to an S3 bucket using a interface VPC endpoint?

To troubleshoot this error, check the following: Verify the policy associated with the interface VPC endpoint and the S3 bucket. Verify that your network can connect to the S3 endpoints. Verify that your DNS can resolve to the S3 endpoints IP addresses.


1 Answers

Check that you have an Amazon S3 VPC endpoint set up, which is required with AWS Glue.

For more details on how to setup a S3 VPC endpoint please refer the following AWS documentation :

https://docs.aws.amazon.com/glue/latest/dg/vpc-endpoints-s3.html

like image 164
Harsh Bafna Avatar answered Sep 21 '22 08:09

Harsh Bafna