Create an AWS EC2 Instance
Create IAM Role with AmazonEc2RoleforSSM permission
Attach this IAM Role to your EC2 Instance
Now SSH into the EC2
Check status if SSM-Agent is installed using this command,
$ sudo systemctl status amazon-ssm-agent
$ yum info amazon-ssm-agent
Command to install SSM-Agent
$ sudo yum install -y https://s3.region.amazonaws.com/amazon-ssm-region/latest/linux_amd64/amazon-ssm-agent.rpm
Add preferred region in command and run to install ssm agent
$ sudo yum install -y https://s3.us-east-1.amazonaws.com/amazon-ssm-us-east-1/latest/linux_amd64/amazon-ssm-agent.rpm
Now you can open the instance on console and login using session manager
Top comments (0)