- 最新
- 投票最多
- 评论最多
I think you're asking "can I make an API (in API Gateway) accessible via a VPC endpoint" and the answer is: no, you can't do that. When you create the API you specify whether it is Edge-optimised, Regional or Private.
This is explained in the launch blog post: https://aws.amazon.com/blogs/compute/introducing-amazon-api-gateway-private-endpoints/
The VPC Endpoints are only meant for Private API Gateway endpoints. When you create private APIs, they can only be accessed from your VPC using an interface VPC endpoint. On the other hand, when you interface with API Gateway publicly accessible endpoints (For example: Regional APIs), it is done through public networks [1][2]. Therefore, it is not possible to connect to public APIs using a VPC endpoint.
However, there is a workaround if you want to access both Public and Private endpoints in your VPC and it has been explained in this article [3][4].
References:
[1] https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html [2] https://aws.amazon.com/blogs/compute/introducing-amazon-api-gateway-private-endpoints/ [3] https://repost.aws/questions/QUbbn6lHHbQUC4buf6Za_7og/accessing-api-gateway-both-public-and-private-endpoint [4] https://repost.aws/knowledge-center/api-gateway-vpc-connections
相关内容
- AWS 官方已更新 3 年前
- AWS 官方已更新 8 个月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 7 个月前