ANUJ AGARWAL
ANUJ AGARWAL

Reputation: 31

Access API Gateway from EC2

I have 1 Lambda Function connected to AWS Oracle RDS. I have exposed lambda to outer world via API Gateway.

How can i access same API Gateway in my EC2 Instance where i have my back-end services running?

[ec2-user@ip-22-22-22-22 dummy]$ ./telnet  10apexecute2.execute-api.eu-west-1.amazonaws.com 443
Trying 55.11.144.98...

Please help

Upvotes: 1

Views: 1826

Answers (1)

Chris Williams
Chris Williams

Reputation: 35258

As the account must be restrictive with its outbound communication over internet, the suggested solution would to make use of a VPC endpoint for API Gateway.

Once you create this endpoint, make sure to enable the "Enable Private DNS Name" option to override the DNS resolution for execute-api endpoints to speak to resolve through your VPC endpoint.

More information can be found in this blog post: Introducing Amazon API Gateway Private Endpoints | AWS Compute Blog

Upvotes: 1

Related Questions