Rev 4182: (robertc) Various tweaks to ec2 stuff, in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Mon Mar 23 01:17:32 GMT 2009
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 4182
revision-id: pqm at pqm.ubuntu.com-20090323011727-b4nl10tcxfo4jiwb
parent: pqm at pqm.ubuntu.com-20090322021619-onz77khivwa932zn
parent: robertc at robertcollins.net-20090323002527-95y8gqjyzjuzazxl
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Mon 2009-03-23 01:17:27 +0000
message:
(robertc) Various tweaks to ec2 stuff,
and make it less windows only. (Robert Collins)
renamed:
doc/developers/ec2-windows.txt => doc/developers/ec2.txt ec2windows.txt-20090219062112-2ga0nqpcm7n02njf-1
modified:
doc/developers/index.txt index.txt-20070508041241-qznziunkg0nffhiw-1
doc/developers/ec2.txt ec2windows.txt-20090219062112-2ga0nqpcm7n02njf-1
------------------------------------------------------------
revno: 4165.3.2
revision-id: robertc at robertcollins.net-20090323002527-95y8gqjyzjuzazxl
parent: robertc at robertcollins.net-20090320051948-hqjmr3bfn8pscv8z
committer: Robert Collins <robertc at robertcollins.net>
branch nick: ec2-ubuntu
timestamp: Mon 2009-03-23 11:25:27 +1100
message:
Review feedback.
modified:
doc/developers/ec2.txt ec2windows.txt-20090219062112-2ga0nqpcm7n02njf-1
------------------------------------------------------------
revno: 4165.3.1
revision-id: robertc at robertcollins.net-20090320051948-hqjmr3bfn8pscv8z
parent: pqm at pqm.ubuntu.com-20090319035632-3o6ewx7kwnk42b63
committer: Robert Collins <robertc at robertcollins.net>
branch nick: ec2-ubuntu
timestamp: Fri 2009-03-20 16:19:48 +1100
message:
Various tweaks to ec2 stuff, and make it less windows only.
renamed:
doc/developers/ec2-windows.txt => doc/developers/ec2.txt ec2windows.txt-20090219062112-2ga0nqpcm7n02njf-1
modified:
doc/developers/index.txt index.txt-20070508041241-qznziunkg0nffhiw-1
doc/developers/ec2.txt ec2windows.txt-20090219062112-2ga0nqpcm7n02njf-1
=== renamed file 'doc/developers/ec2-windows.txt' => 'doc/developers/ec2.txt'
--- a/doc/developers/ec2-windows.txt 2009-03-03 02:23:29 +0000
+++ b/doc/developers/ec2.txt 2009-03-23 00:25:27 +0000
@@ -69,12 +69,15 @@
an administrator for ease of installing software.
You do need to have an RSA keypair to get the initial password for a
-Windows machine, even though you can't use it to log in later. As a quirk
-of the tools(?) ``ec2-get-password`` needs the full path to the keypair
-but ``ec2-add-keypair`` just wants part of the name. I guess this is
-distinct from the account identifier because the image is relatively
-untrusted(?). If the password is already set in the image, this shouldn't
-be necessary.
+Windows machine, even though you can't use it to log in later.
+``ec2-get-password`` takes the full path to the private key to obtain the
+password from Amazon, and ``ec2-add-keypair`` creates a named keypair at
+Amazon and returns the private path. One keypair is all that is needed.
+This is distinct from the account identifier - likely due to the different
+toolchains in use (the keypairs are used for unix ssh keys, and I (Robert)
+suspect a rather unix friendly core at Amazon).
+Once a custom image is made with a saved password, you can skip using
+``ec2-get-password`` (which is only needed for Windows anyway).
It would be nice if rdesktop could use private key authentication but
apparently not.
@@ -95,29 +98,40 @@
* Install the
`Amazon EC2 API tools`_ (needs-packaging `bug 330930`_)
+* Create an Amazon Web Services account, sign up for S3 and EC2, and do
+ the various steps to create authentication devices.
+
* Create a private key and certificate for yourself.
Check these environment variables are set and exported, e.g. by setting
them in the file ``~/.aws``. Make sure the files are private.::
- EC2_PRIVATE_KEY=~/.ec2/pk-XXXXXX.pem
- EC2_CERT=~/.ec2/cert-XXXXXX.pem
- EC2_HOME=~/build/ec2-api-tools-1.3-30349
- AWS_SECRET_ACCESS_KEY=XXXXXXXXX
- AWS_ACCESS_KEY_ID=XXXXXXXXXXX
- PATH=$PATH:$EC2_HOME/bin
- JAVA_HOME=/usr/lib/jvm/java-6-openjdk
+ export EC2_PRIVATE_KEY=~/.ec2/pk-XXXXXX.pem
+ export EC2_CERT=~/.ec2/cert-XXXXXX.pem
+ export EC2_HOME=~/build/ec2-api-tools-1.3-30349
+ export AWS_SECRET_ACCESS_KEY=XXXXXXXXX
+ export AWS_ACCESS_KEY_ID=XXXXXXXXXXX
+ export EC2_KEYPAIR_NAME=XXXXXXXXX
+ export PATH=$PATH:$EC2_HOME/bin
+ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
+ ssh-add ~/.ec2/id_rsa
+
+ You can now '. ~/.aws' to get the ec2 commands available.
+
+* (Unix images only) run ec2-add-keypair SOMENAME, e.g. 'bzr'. Put the
+ result (minus the first line) somewhere like ~/.ec2/id_rsa and chmod go-rw.
+
+* A useful Unix image is `ami-bdfe19d4`_, Eric Hammonds 64-bit Ubuntu image.
* Install the rdesktop client, to actually access the machine.
-* Create an Amazon Web Services account, sign up for S3 and EC2, and do
- the various steps to create authentication devices
-
* Possibly read some of the `EC2 documentation`_ for background.
.. _`bug 330930`: https://bugs.edge.launchpad.net/ubuntu/+bug/330930
.. _`Amazon EC2 API tools`:
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=368&categoryID=88
.. _`EC2 documentation`: http://aws.amazon.com/
+.. _`ami-bdfe19d4`:
+ http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1762&categoryID=101
* Create a security group for your that allows rdesktop access and icmp with::
@@ -185,5 +199,10 @@
ec2-modify-image-attributes $ami_id -l -a 123412341234
+Management console (useful!)
+----------------------------
+
+https://console.aws.amazon.com/ec2/home
+
..
vim: ft=rst tw=74 ai
=== modified file 'doc/developers/index.txt'
--- a/doc/developers/index.txt 2009-03-19 03:25:31 +0000
+++ b/doc/developers/index.txt 2009-03-23 01:17:27 +0000
@@ -42,8 +42,8 @@
* `Profiling notes <profiling.html>`_ |--| Instructions on how to profile
bzr code and visualize the results.
-* `EC2 Windows server <ec2-windows.html>`_ |--| A team resource for
- Windows packaging and testing.
+* `EC2 resources <ec2.html>`_ |--| A team resource for
+ Windows packaging and testing, and Ubuntu testing.
Plans
=====
More information about the bazaar-commits
mailing list