简体   繁体   English

使用 AWS API 网关公开私有 rest web 服务

[英]Using an AWS API Gateway to expose private rest web services

Is it possible for an API Gateway to reach private EC2s? API 网关是否可以访问私有 EC2?

Is it possible to create an "internal" API Gateway which exposes internal URL (ie services reachable only in the private subnets) which can in turn be accessed only from within the VPC?是否可以创建一个“内部”API 网关,该网关公开内部 URL(即只能在私有子网中访问的服务)而只能从 VPC 内部访问? I would like to do something like ALB does, when you create an internal load balancer.当您创建内部负载均衡器时,我想做像 ALB 那样的事情。 For example, I expose a rest ws from an ec2 instance which resides on a private subnet;例如,我从驻留在私有子网上的 ec2 实例公开了 rest ws; I would like to expose that ws through an API Gateway to only other EC2s within the same VPC.我想通过 API 网关仅向同一 VPC 中的其他 EC2 公开该 ws。 I'm able to expose privately public web services through a Private API Gateway, but what if also the exposed ws is private?我可以通过私有 API 网关公开私有 web 服务,但是如果公开的 ws 也是私有的呢? Is it possible for an API Gateway to reach private EC2s? API 网关是否可以访问私有 EC2?

Thanks谢谢

Yes, you are looking for API Gateway Private Endpoints是的,您正在寻找API 网关专用端点

Each endpoint is an elastic network interface configured in your VPC that has security groups configured.每个终端节点都是在您的 VPC 中配置的弹性网络接口,并配置了安全组。

To integrate API Gateway with private VPC resources, use private integrations要将 API 网关与私有 VPC 资源集成,请使用私有集成

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS-对于对外部服务的传出请求,我应该使用AWS API Gateway还是NAT GAteway从私有子网调用外部Web服务 - AWS- For outgoing requests to external services, Should i use AWS API Gateway or NAT GAteway to call external web services from private subnet 如何在私有 su.net 中为 AWS Eks 服务创建 API 网关? - How to create an API Gateway for AWS Eks services in private subnets? 如何将Spring Boot Rest项目部署到私有AWS API GATEWAY? - How to deploy spring boot rest project to private AWS API GATEWAY? 如何使用cloudformation创建私有AWS Api网关? - How to create a private AWS Api Gateway using cloudformation? 使用AWS api网关+ lambda + Nodejs的私有和公共IP - private and public ip using AWS api gateway + lambda + Nodejs AWS API 网关在私有 VPC 中调用 api - AWS API Gateway call api in private VPC 是否可以使用“HTTP”协议(不是 REST)通过 AWS API 网关返回 HTML? - Is it possible to return HTML with AWS API Gateway using the “HTTP” protocol (not REST)? 通过 API 网关公开在 EKS 中运行的 Kubernetes 服务 - Expose Kubernetes services running in EKS through API Gateway 如何使用 REST API 网关同步运行 AWS Step Functions - How to run AWS Step Functions Synchronously using the REST API Gateway AWS API 网关访问另一个账户中的私有 API 网关 - AWS API Gateway access private API Gateway in another account
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM