I've been trying to launch an EC2 instance that has the following requirements:
- It needs to be accessible from the internet (ie: via RDP)
- However from inside the EC2 instance it is not able to access the internet.
Initially, my thought is that the instance should be launched in a subnet that has its route table entry 0.0.0.0/0 to the IGW removed.
However, when that route table entry was removed, our RDP connection into the EC2 instance fails.
My next try was to remove all outbound rules from the instance's security group. This stops all external internet access for the instance for good, however the instance is also no longer able to access anything on the intranet.
Is it possible for an instance to still access resources on the local network, but have no routable access out to the internet?
Thanks all!