Link to home
Start Free TrialLog in
Avatar of E C
E CFlag for United States of America

asked on

AWS RDP into Windows Server EC2 instances without Elastic IP

I'm creating a network on AWS that is comprised of a load balancer, 3 x EC2 instances and a SQL database.

Because the public internet only hits the load balancer, my EC2 instances do not need to have static IPs. The LB can always attach to the EC2 instances in the group.

My issue has to do with remote desktop. Today I can go to the EC2 dashboard and download the pre-configured RDP files for each EC2 instance. It's convenient to be able to remote into the EC2 instances using Remote Desktop. The problem is, if the IP address of the EC2 instance changes (which it will, eventually, when shutting down and starting back up), those Remote Desktop shortcuts no longer work. Minor inconvenience but I am just wondering - is there an easier way to be able to remote into any EC2 instance running Windows?  (I am connecting with the auto-assigned DNS name for the EC2 instance but the DNS name is actually comprised of the public IP. So if the public IP changes, so does the DNS record)

ASKER CERTIFIED SOLUTION
Avatar of Adelaido Jimenez
Adelaido Jimenez
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of E C

ASKER

Yes, all of my machines are in the public IP and the *only* reason it's set up like this is because I need (want) to be able to remote into them. I thought about putting them into a private subnet (where they belong), then create a new EC2 instance in the public subnet to use as a jump station - remote into that Windows VM in the public subnet and then from there remote into the private VMs. Didn't think about doing a VPN but that seems to make perfect sense. I don't really want to use Elastic IPs so this sounds like a good solution. Thanks!