AWS RHEL8 Systems Manager Agentをインストールする方法

環境
AWS
RHEL8
東京リージョン(ap-northeast-1)

操作方法
1.SSMAgentをインストールする

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo dnf install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
sudo dnf install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
sudo dnf install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm

2.自動起動を設定します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo systemctl enable amazon-ssm-agent
sudo systemctl enable amazon-ssm-agent
sudo systemctl enable amazon-ssm-agent

3.SSMAgentを起動する

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo systemctl start amazon-ssm-agent
sudo systemctl start amazon-ssm-agent
sudo systemctl start amazon-ssm-agent

4.バージョンを確認する

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# dnf info amazon-ssm-agent
# dnf info amazon-ssm-agent
# dnf info amazon-ssm-agent

 

AWS

Posted by arkgame