Create connect to EC2 server
EC2 is located on a private subnet and cannot be connected in the usual way. In this lab, we use session manager to create a connection to the server.
Create a connection to EC2
- Access the admin interface of the AWS System Manager service.
- Select Fleet Manager.
- Select Account management.
- Select Configure Default Host Management Configuration.

- On the Configure Default Host Management Configuration page.
- Select Enable Default Host Management Configuration.
- Select IAM Role for Systems Manager to be able to manage your EC2.
- Select Configure.

Create a connection to EC2
- Access the EC2 service management interface.
- Select Instance
- Select the newly created EC2.
- Select Connect.

- On the Connect to instance page.
- Select Session Manager
- Select Connect.

The interface after connection is as shown below.
