Monday, March 21, 2022

AWS Management & Governance - System Session Manager (SSM)


SSM - AWS Documentation

Session Manager

It is a part of the System Manager service of AWS and it is used for patch management for AWS instances. Patching is installing/uninstalling/updating.

With Session Manager, you can manage your Amazon Elastic Compute Cloud (Amazon EC2) instances, edge devices, and on-premises servers and virtual machines (VMs).

To access SSM terminal:

Step 1: Create a role for EC2 service with permission AmazonSSMManagedInstanceCore

Step 2: Attach the above role to the EC2 instance that you want to patch. (ensure that you have detach other roles from the EC2).

Step 3: Select System Manager Service.

Step 4: On the left panel select the Session Manager link. (under Node Management).

Step 5: Click on Start Session button. (if EC2 is not found, make sure all traffic in the EC2 inbound and then reboot the EC2).

Step 6: You will see your instance here which is attached with Role. If you do not see in couple of minutes, restart/reboot the EC2 instance.

Step 7: Select EC2 instance in session Manager and Click on Start Session button. It will open a terminal. Check that httpd is installed or not.

>>> sudo systemctl status httpd 


To install apache via Run Command:

Step 1: Select Run Command from the left panel link and Click on Run Command button.

Step 2: Search for shell and Select AWS-RunShellScript

Step 3: Add below commands in the Run Command window

>>> sudo yum install httpd -y

>>> sudo systemctl start httpd

>>> sudo systemctl enable httpd

Step 4: Type in any comment (it is like commit).

Step 5: Select you EC2 instance. and Run the command

Step 6: Via the terminal above, check if httpd is installed on your EC2 instance or not.


No comments:

Post a Comment

Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...