Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
New releases of Ubuntu AMIs for Amazon EC2 2008-05-17 (startup hooks)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric Hammond  
View profile  
 More options May 18 2008, 12:12 am
From: Eric Hammond <ehamm...@thinksome.com>
Date: Sat, 17 May 2008 21:12:11 -0700 (PDT)
Local: Sun, May 18 2008 12:12 am
Subject: New releases of Ubuntu AMIs for Amazon EC2 2008-05-17 (startup hooks)

New updates have been released for all of the Ubuntu AMIs listed on:

  http://alestic.com

Though this release is only 3 days after the previous one it is
surprisingly not to fix bugs, but rather to add one of the most
demanded features: startup hooks.

Thanks to code submitted by Kim Scheibel and Jorge Oliveira (with a
little mangling from me) it is now easy to type a single command (or
push a button in Elasticfox) and have an Ubuntu instance start up and
immediately install, configure, and run software without any
additional manual intervention.

Simply pass a script (starting with #!) as the instance user-data and
it will be run automatically on the first boot.  If you want it to be
run on every boot, see the comments at the top of this file:

  http://ec2-run-user-data.notlong.com

For example, to start a Hardy LAMP server, you could create a script
named "install-lamp-server" with the contents:

  #!/bin/bash
  export DEBIAN_PRIORITY=critical
  apt-get update
  apt-get upgrade -y
  apt-get install -y lamp-server^
  echo "Please remember to set the MySQL root password!"

Then using the latest Ubuntu 8.04 Hardy base install AMIID (from
http://alestic.com ) run a command like:

  ec2-run-instances \
    --user-data-file install-lamp-server \
    --key IDENTITY \
    AMIID

A couple minutes later, you should be able to connect to the server's
external hostname with a web browser.  To see the progress of your
user-data script on the instance:

  tail -f /var/log/syslog

Output from the user-data script is also available in the EC2 instance
console output for convenient remote debugging.

You can write the user-data script in any language that happens to be
on the base AMI (bash, perl, python, ruby, awk, ...) as long as the
program file starts with: #!

Note that there is a size limit on user-data in EC2, but the user-data
script may download additional files from S3 or other locations, so
this shouldn't be too constraining.

Now let the competition begin for coolest and most useful instance
user-data scripts!

Enjoy,
--
Eric Hammond
http://www.anvilon.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »