· 1 min read
EC2 Systems Manager setup & configure run command
Set up EC2 Systems Manager (SSM) on AWS and use Run Command to install the SSM agent and run commands across your EC2 instances.
- ec2
- run command
- ssm
EC2 SSM Agent Installation - Bootstrap Script
#!/bin/bash
cd /tmp
sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
Apache Install Commands for EC2 SSM RunCommand
yum install httpd -y
echo "This is my apache web server" > /var/www/html/index.html
service httpd start