Connect to Private instance

For Windows instance located in private subnet, there is no public IP, no internet gateway so it cannot go out internet.
With this type of instance, the traditional way is to use Bastion host technique which is expensive and laborious, but here we will use Session Manager with this type.
Basically, the private instance still has to open the TCP 443 port to System Manager, but we don’t want to allow connection go out to the internet, but only in its VPC, to enhance our security posture.
To do that, we have to include the System Manager endpoint in the VPC, that is, using the VPC interface endpoint:

ConnectPrivate

VPC interface endpoint is attached to the subnet, so this method can be done not only with private subnet but also with public subnet, meaning that with public subnet, you can completely prohibit TCP 443 go out to the internet.

Content: