Skip to content

Instantly share code, notes, and snippets.

@ejdoh1
Last active December 11, 2023 21:43
Show Gist options
  • Save ejdoh1/489ab6ad283e97aaffd5dccb6c997457 to your computer and use it in GitHub Desktop.
Save ejdoh1/489ab6ad283e97aaffd5dccb6c997457 to your computer and use it in GitHub Desktop.
AWS SSM Agent Raspberry Pi Installation
# AWS SSM Agent RPi Installation
# First get an SSM agent activate code
# - Login to the AWS web console and browse to the AWS Systems Manager service (SSM).
# - Under Instances & Nodes, select Hybrid Activations
# - Select 'Create activation', fill-out the form and get an activation code
# Login to your server via SSH and run the following commans, entering the code, id and region values
mkdir /tmp/ssm
sudo curl https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_arm/amazon-ssm-agent.deb -o /tmp/ssm/amazon-ssm-agent.deb
sudo dpkg -i /tmp/ssm/amazon-ssm-agent.deb
sudo service amazon-ssm-agent stop
sudo amazon-ssm-agent -register -code "activation-code" -id "activation-id" -region "region"
sudo service amazon-ssm-agent start
# Now check that your agent is online by browsing to 'Managed Instances'
# To invoke a command on your instance, browse to 'Run Command'
# - Select the Run Command button
# - Select the 'AWS-RunShellScript' Command Document radio button
# - Enter a command like 'pwd' in the Command parameters section
# - Select 'Choose instance manually' in for Targets and select your instance
# - Select Run
# Links
# https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-managed-linux.html (see section On Raspbian)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment