[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian Images on Amazon Web Services (resent)




Hello Debian-Cloud people,


(appologies if this ends up coming through twice)

<TL;DR>

Official AWS EC2 AMI images under-way; please test and give feedback: search AMIs for "379101102735/debian-squeeze". Stable only. SSH as "ec2-user". SSH keys only. UserData shell script support. Feedback wanted!

</TL;DR>

 

This list is now a few days older, so hopefully we have a few more subscribers who may have missed the earlier few messages...

I have been coordinating between Debian (as I am a DD - jeb@debian.org)  and Amazon Web Services (as I have recently started working there - jameseb@amazon.com) to create what can become official Debian images on AWS, with the blessing of our Debian  leader (Stefano), the help of Charles Plessy (maintainer of the cloud-init package, currently in experimental), and Anders Ingemann (the maintainer of a fork of the ec2debian-build-ami scripts; https://github.com/andsens/ec2debian-build-ami). I know Anders and Charles are both on list, so the direct email exchanges we have been doing can now effectively happen here, unless people object to too much AWS traffic on the Cloud list.

Further background: I have created an AWS account on behalf of Debian, and will grant access to any DD who wants access to create images and help maintain the project. I plan to also give read only access to every DD once we have sorted out authentication federation between the Debian LDAP sever and AWS's Security Token Service (STS) facility (any volunteers?). if you would like to actively jump in, please let me know.

Using Anders' scripts (ec2debian-build-ami), I have created a 32 and 64 bit image in all 7 public AWS Regions worldwide for Debian 6.0.6 (stable; Squeeze). The images were created using an existing Debian image I had previously created, firing up the instance with the following 'UserData' script:

 

#!/bin/sh
apt-get update; apt-get install -y git; cd ~root; git clone https://github.com/andsens/ec2debian-build-ami.git; cd ~root/ec2debian-build-ami; export AWS_ACCESS_KEY=XXXX; export AWS_SECRET_KEY=XXXX; ./ec2debian-build-ami --volume-size 8 --filesystem ext4 --plugin plugins/ec2-run-user-data --plugin plugins/ec2-user --description 'Debian 6.0.6 (Squeeze)'; ./ec2debian-build-ami --volume-size 8 --filesystem ext4 --plugin plugins/ec2-run-user-data --plugin plugins/ec2-user --description 'Debian 6.0.6 (Squeeze)' --arch i386; shutdown -h now

 

(Note, I used an instance with "Shutdown behaviour" set to "Terminate", so as soon as the above script finished, everything for the build host was freed - which is kind of neat)

 

These images are publicly shared right now in each Region: you can search for "379101102735/debian-squeeze-i386-20121107" or "379101102735/debian-squeeze-amd64-20121107"; these images were all generate dint he last 2 hours. They support executing UserData as a script - it is not full Cloud-init support (https://help.ubuntu.com/community/CloudInit) as the Cloud-init package is not in stable. Password based SSH is disabled; key only access is the way. These images also require you to SSH to the instance as the "ec2-user" user, and not root. You may then "sudo -i" to gain root privileges. this is in line with the recommendation for images on EC2 (https://aws.amazon.com/marketplace/help/200897460).

 

I'd appreciate some feedback from the rest of the community here. Some questions i would appreciate answers in general:

* Is this level of support for UserData sufficient in these images?

* Is the default list of packages sufficient, or are we missing something (the list is default as per the build script above)?

* Do the AMIs work well for you (please test them out)?

 

For those looking for some of the AMIs by AMI ID:

US-East (N. Virginia):
ami-200fb549
: 379101102735/debian-squeeze-amd64-20121107
ami-d40fb5bd
: 379101102735/debian-squeeze-i386-20121107

 
US West (Oregon):
ami-3a7bf20a: 379101102735/debian-squeeze-i386-20121107
ami-de78f1ee: 379101102735/debian-squeeze-amd64-20121107
 
US West (N. California):
ami-c8fddb8d: 379101102735/debian-squeeze-amd64-20121107
ami-d6fddb93: 379101102735/debian-squeeze-i386-20121107
 
EU (Ireland):
ami-11909365: 379101102735/debian-squeeze-i386-20121107
ami-21909355: 379101102735/debian-squeeze-amd64-20121107
 
AP (Singapore):
ami-4e3b781c: 379101102735/debian-squeeze-i386-20121107
ami-4a3b7818: 379101102735/debian-squeeze-amd64-20121107
 
AP (Tokyo):
ami-460bb547: 379101102735/debian-squeeze-amd64-20121107
ami-520bb553: 379101102735/debian-squeeze-i386-20121107
 
South America (Sao Paulo):
ami-567ea74b: 379101102735/debian-squeeze-i386-20121107
ami-587ea745: 379101102735/debian-squeeze-amd64-20121107
 
 
Please consider these as temporary right now; do not rely on them for CloudFormation templates, AutoScale or anything else until we launch a final Squeeze image (which may end up being these, but lets give it a bit of time).
if we are satisfied with this, then my next steps will be to complete registration of these images as the official Debian images, and then we wait for the next point release - or major release. We should commit to have the existing images around for quite some period as people will rely on them. AWS is picking up charges for this account on AWS, and the team at Amazon Web Services are excited to have official Debian images available on EC2.
 

Feel free to feedback directly if you do not wish to be on list. I'd like to get this finished next week if possible. My thanks goes to Anders and everyone who has hacked on ec2debian-build-ami; Charles and Stefano, and of course, my fellow DDs for continuing to make one of the best distros ever. ;)

  James

 




Reply to: