[ec2-beta] howto user-data scripts

Alon Girmonsky alongir at gmail.com
Thu Apr 23 12:58:28 BST 2009


You can simply use: curl -s to get
the user-data.
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
additional work.

On Thu, Apr 23, 2009 at 2:43 PM, Wouter Samaey <wouter.samaey at gmail.com>wrote:

> Hi,
> 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
> undocumented.
> 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:
> https://lists.ubuntu.com/mailman/listinfo/ec2-beta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/mailman/private/ec2/attachments/20090423/f6aca7f0/attachment-0002.htm 

More information about the Ec2-beta mailing list