Skip to content

Instantly share code, notes, and snippets.

@khaong
Created August 11, 2012 05:33
Show Gist options
  • Save khaong/3321462 to your computer and use it in GitHub Desktop.
Save khaong/3321462 to your computer and use it in GitHub Desktop.
AWS Training - 2nd instance launch userdata.sh
#!/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