I have an EC2 instance running with the following networking setup:
- it resides in a public subnet with an Internet Gateway attached
- it has a security group attached with an outbound rule to allow all traffic (all ports on 0.0.0.0/0)
According to the documentation, it should be possible to connect to the instance using AWS Session Manager:
In order for your managed instances and the Systems Manager service to communicate with each other, you must do one of the following:
-Configure Systems Manager to use an interface Virtual Private Cloud (VPC)
endpoint
-Enable outbound internet access on your managed instancesNote
Enabling inbound internet access is not required.
(source: https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-prereqs.html)
But when I'm trying to connect with Session Manager, the connection is not initialized (a black screen shows up but it stays empty).
If I enable all inbound traffic in the security group (by adding an inbound rule on all ports on 0.0.0.0/0), then Session Manager works properly. But it should not be required and of course I want to avoid it due to security reasons.
So what is wrong in the setup?