AWS SSM (system Manager)

- ssm central operational unit (managing cloud and onprem vm’s)
Allow instances to ssm
- we need install ssm agent in linux
- allow access ssm by vm (role)
- attach required permissions (policy to attach role)
Create policy or use existing policy aws managed policy
AmazonSSMFullAccessaws managed policy- create
iam userand attach same policy- configure using
aws configure - valiadate user
aws sts get-caller-identity
- configure using
Install ssm agent on ec2 instance
Redhat ssm agent install or update
Task:
- create ec2 instance (os- redhat) and install ssm agent
- attach iam role & restart ssm agent
- connect vm form fleet manager and run below cmds
sudo yum update
sudo dnf install s -y
sudo dnf install mod_ssl -y
sudo systemctl enable --now httpd
sudo systemctl status httpd
ubuntu
sudo apt update
sudo apt install apache2 -y
sudo systemctl status apache2
sudo systemctl restart apache2.service
sudo systemctl enable apache2
sudo systemctl stop apache2
