Connect to your Amazon EC2 instance using Session Manager
You might encounter problems when you connect to the EC2 instance through the session manager for the first time. However, the following simple configuration can ensure a smooth process.
Well, it's not over yet. If you see the connect icon under session manager greyed out, check the following items.
Reason: EC2 instance is not in a public subnet or does not have a route to the internet, or no Public IP is associated with the instance
2. Instance is not connected to the systems manager
Reason: Security Group does not have an outbound HTTPS rule enabled
Once these are sorted out, the connect icon becomes available.
The web shell would look like the one below.
Also, you will see the SSM agent status under the Fleet Manager.
In this way, Session Manager can be used to start a session with an instance in your account. After the session is started, you can run interactive commands on the instance as you would for any other connection type.
Resources: