Skip to content

Instantly share code, notes, and snippets.

@clarenceb
Created August 15, 2012 05:59
Show Gist options
  • Select an option

  • Save clarenceb/3356721 to your computer and use it in GitHub Desktop.

Select an option

Save clarenceb/3356721 to your computer and use it in GitHub Desktop.
AWS Training - 2nd instance launch with user data script
#!/bin/bash
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
dpkg --configure -a
wget http://bit.ly/aws-ec2id -O aws-ec2id
nohup bash aws-ec2id &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment