简体   繁体   中英

AWS: VPC interface endpoint for private subnets

I have 3 private subnets (internet access through NAT gateways). I would like to leverage VPC endpoints to interact with AWS services like SQS, SNS, RDS etc from these subnets without accessing the internet (all traffic for these services should remain inside AWS). The problem is, when I try to create a VPC endpoint for example for a service like SQS, I can only choose type interface which seems to support only public subnets:

在此处输入图像描述

But I need to use the VPC endpoint inside private subnets (without an IGW). Is this possible?

To reproduce this situation I did the following:

  • Created a VPC
  • Created 4 subnets in the VPC:
    • Public in AZ-A
    • Public in AZ-B
    • Private in AZ-A
    • Private in AZ-B

I then went to create a VPC Endpoints for Amazon SQS and I was able to select any of the subnets:

创建 VPC 终端节点

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM