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 réponses
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
répondu il y a 2 ans
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 2 ans
  • 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
EXPERT
kentrad
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions