Skip to content

Instantly share code, notes, and snippets.

@snewman
Created February 28, 2012 15:45
Show Gist options
  • Save snewman/1933250 to your computer and use it in GitHub Desktop.
Save snewman/1933250 to your computer and use it in GitHub Desktop.
AWS Cloud Init
#!/bin/bash
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
wget http://bit.ly/aws-ec2id
nohup bash aws-ec2id &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment