Skip to content

Instantly share code, notes, and snippets.

@carlochess
Created April 16, 2021 15:33
Show Gist options
  • Save carlochess/d401f10ca59cb02b51db1a083394a992 to your computer and use it in GitHub Desktop.
Save carlochess/d401f10ca59cb02b51db1a083394a992 to your computer and use it in GitHub Desktop.
Simple userdata for amazon ec2 instance with session manager
arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM
yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
systemctl enable amazon-ssm-agent
systemctl start amazon-ssm-agent
systemctl status amazon-ssm-agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment