How To Install AWS System Manager (SSM) Agent
Hello Everyone
Welcome to CloudAffaire and this is Debjeet.
In the last blog post, we have learned what is SSM and the different components of SSM.
https://cloudaffaire.com/components-of-aws-system-manager-or-ssm/
In this blog post, we will discuss how to install AWS System Manager (SSM) Agent.
What Is AWS System Manager (SSM) Agent:
AWS Systems Manager (SSM) Agent is Amazon software that can be installed and configured on an EC2 instance, an on-premises server, or a virtual machine (VM). SSM Agent makes it possible for Systems Manager to update, manage, and configure these resources. The agent processes requests from the Systems Manager service in the AWS Cloud, and then runs them as specified in the request. SSM Agent then sends status and execution information back to the Systems Manager service by using the Amazon Message Delivery Service.
How To Install AWS System Manager (SSM) Agent:
Most of the standard AMI offered by AWS comes pre-installed with an SSM agent on it. But if you create an EC2 instance with a non-standard AMI or where the SSM agent is not pre-installed, you can follow the below steps to install AWS SSM agent.
How To Install AWS SSM Agent On Amazon Linux OS:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
############################################ ## How To Install And Configure SSM Agent ## ############################################ ## ------------ ## Amazon Linux ## ------------ ## Install AWS SSM Agent (Replace sudo yum install -y https://s3. ## Start and enable SSM agent sudo enable amazon-ssm-agent sudo start amazon-ssm-agent sudo status amazon-ssm-agent |
How To Install AWS SSM Agent On Amazon Linux 2 OS:
1 2 3 4 5 6 7 8 9 10 11 |
## -------------- ## Amazon Linux 2 ## -------------- ## Install AWS SSM Agent (Replace sudo yum install -y https://s3. ## Start and enable SSM agent sudo systemctl enable amazon-ssm-agent sudo systemctl start amazon-ssm-agent sudo systemctl status amazon-ssm-agent |
How To Install AWS SSM Agent On RHEL Based OS (CentOS/Oracle Linux/RedHat):
1 2 3 4 5 6 7 8 9 10 11 |
## ---------------------------- ## CentOS | Oracle Linux | RHEL ## ---------------------------- ## Install AWS SSM Agent (Replace sudo yum install -y https://s3. ## Start and enable SSM agent sudo systemctl enable amazon-ssm-agent sudo systemctl start amazon-ssm-agent sudo systemctl status amazon-ssm-agent |
How To Install AWS SSM Agent On Debian Linux:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
## ------ ## Debian ## ------ ## Create a new directory and get inside it mkdir /tmp/ssm && cd /tmp/ssm ## Get the debian package wget https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.deb ## Install SSM agent sudo dpkg -i amazon-ssm-agent.deb ## Start and enable SSM agent sudo systemctl enable amazon-ssm-agent sudo systemctl start amazon-ssm-agent sudo systemctl status amazon-ssm-agent |
How To Install AWS SSM Agent On SUSE Linux:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
## ---- ## SUSE ## ---- ## Create a new directory and get inside it mkdir /tmp/ssm && cd /tmp/ssm ## Get the latest package wget https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm ## Install SSM agent sudo rpm --install amazon-ssm-agent.rpm ## Start and enable SSM agent sudo systemctl enable amazon-ssm-agent sudo systemctl start amazon-ssm-agent sudo systemctl status amazon-ssm-agent |
How To Install AWS SSM Agent On Ubuntu OS:
1 2 3 4 5 6 7 8 9 10 11 |
## ------ ## Ubuntu ## ------ ## Install SSM agent sudo snap install amazon-ssm-agent --classic ## Start and enable SSM agent sudo systemctl enable snap.amazon-ssm-agent.amazon-ssm-agent.service sudo systemctl start snap.amazon-ssm-agent.amazon-ssm-agent.service sudo systemctl status snap.amazon-ssm-agent.amazon-ssm-agent.service |
How To Install AWS SSM Agent On Windows OS:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
## ------- ## Windows ## ------- ## Open a PowerShell session as Admin and execute the below command to download SSM Agent Installer for Windows Invoke-WebRequest ` https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/windows_amd64/AmazonSSMAgentSetup.exe ` -OutFile $env:USERPROFILE\Desktop\SSMAgent_latest.exe ## Install SSM Agent Start-Process ` -FilePath $env:USERPROFILE\Desktop\SSMAgent_latest.exe ` -ArgumentList "/S" ## Remove the installer post installation rm -Force $env:USERPROFILE\Desktop\SSMAgent_latest.exe ## Restart SSM Agent service Restart-Service AmazonSSMAgent |
Hope you have enjoyed this blog post, to get more details on AWS SSM, please refer below AWS documentation
https://docs.aws.amazon.com/systems-manager/index.html