[ec2-beta] howto user-data scripts
alongir at gmail.com
Thu Apr 23 12:58:28 BST 2009
You can simply use: curl -s http://169.254.169.254/latest/user-data to get
Some bundles of Ubuntu already execute the user-data if identified as
script. You can check the /etc/init.d directory (I think this is correct) to
see a script that basically download the user-data, check for the
#!/usr/bin/bash (or something like this). I guess this script has
I guess what you are looking for is straightforward and requires no
On Thu, Apr 23, 2009 at 2:43 PM, Wouter Samaey <wouter.samaey at gmail.com>wrote:
> I've known there has been talk about the user-data scripts before, and
> I've read all I could find, but still don't understand how to use this
> feature. I believe Eric Hammond also stated this is pretty
> Could someone please write a simple tutorial for this?
> My goal would be to write different scripts that would configure the
> instance on first boot (not reboot), as a replacement for creating own
> AMI's. This way I could keep using official AMI's, and upgrade as
> newer versions come out.
> I'm using EC2 right now, but have never used the user-data before.
> Thanks in advance
> Wouter Samaey
> Ec2-beta mailing list
> Ec2-beta at lists.ubuntu.com
> Modify settings or unsubscribe at:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ec2-beta