Placing a Bastion in a Private Isolated Subnet

0

Hello,

I have an RDS instance placed in a Private Isolated Subnet, and I'm trying to create a Bastion that would allow me to gain access to this RDS instance. I can connect to the Bastion using SSM, I do not need SSH. The question is, since I assume that the Bastion needs to access the internet to download and update packages internally, would it "work" if I created it in the same subnet as the RDS instance, or else do I have to create a separate Private (only) subnet for it?

3 個答案
1

The hosts in private subnet can get access to internet by using a network address translation (NAT) gateway that resides in the public subnet. Your bastion host can connect to the internet for software updates using the NAT gateway, but the internet cannot establish connections to the bastion host. So, its up to you if you want your bastion host in the same subnet where your database server is or in a private subnet.

AWS
已回答 2 年前
0

Hello,

If you only want the bastion server to connect to SSM, you can configure VPC Endpoints for Instances with no Internet access.

AWS
支援工程師
已回答 2 年前
  • Thank you. In this case can't I just add an RDS VPC Endpoint and connect to my RDS instance in my Private Isolated Subnet directly from my local machine without an EC2 instance altogether?

0

If you are only concerned with patches, you could do this:

How can I update yum or install packages without internet access on my EC2 instances running Amazon Linux 1 or Amazon Linux 2?

Then you don't need the NAT Gateway, public subnet, or Internet Gateway.

profile pictureAWS
專家
kentrad
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南