Differences between revisions 32 and 33
Revision 32 as of 2016-03-02 02:12:02
Size: 3459
Editor: ConradPino
Comment: Add AWS CLI link
Revision 33 as of 2016-03-12 16:35:02
Size: 3858
Comment: Debian Jessie 8.3 AMIs
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
== New in Debian Jessie EC2 Images == == What's in Debian Jessie EC2 Images ==
Line 19: Line 19:

== 8.3 ==

|| '''Region''' || '''hvm x86_64 ebs''' ||
|| ap-northeast-1 || ami-899091e7 ||
|| ap-southeast-1 || ami-7bb47d18 ||
|| ap-southeast-2 || ami-9a7056f9 ||
|| eu-central-1 || ami-2638224a ||
|| eu-west-1 || ami-11c57862 ||
|| sa-east-1 || ami-651f9c09 ||
|| us-east-1 || ami-f0e7d19a ||
|| us-west-1 || ami-f28bfa92 ||
|| us-west-2 || ami-837093e3 ||
|| cn-north-1 || ||

Debian Jessie on AWS EC2

SSH username

SSH to Debian instances as user admin using your SSH key, and then sudo -i to gain root access.

What's in Debian Jessie EC2 Images

  • HVM images preferred - current generation EC2 instances all support HVM virtualisation.

  • 64 bit images only - current generation EC2 instances all support 64 bit; if you require 32 bit, please look at Multiarch

  • SR-IOV images for HVM - enhanced Networking is enabled by default

  • Multiple ENI support - DHCP client is configured to support the number of network interfaces the instance supports (up to 8), hot plugged with udev

  • Multiple sub-interfaces - DHCP client is configured to support multiple IP addresses per interface

  • AWS CLI is installed by default

  • Python-boto is installed by default

  • apt-transport-https is installed; you can change your sources.list to https://cloudfront.debian.net (or other https site) if you wish!

8.3

Region

hvm x86_64 ebs

ap-northeast-1

ami-899091e7

ap-southeast-1

ami-7bb47d18

ap-southeast-2

ami-9a7056f9

eu-central-1

ami-2638224a

eu-west-1

ami-11c57862

sa-east-1

ami-651f9c09

us-east-1

ami-f0e7d19a

us-west-1

ami-f28bfa92

us-west-2

ami-837093e3

cn-north-1

8.1

  • Later versions possibly available.

Region

hvm x86_64 ebs

paravirtual x86_64 ebs

ap-northeast-1

ami-e624fbe6

ami-0822fd08

ap-southeast-1

ami-ac360cfe

ami-4e370d1c

ap-southeast-2

ami-bbc5bd81

ami-e7c5bddd

eu-central-1

ami-02b78e1f

ami-5cb78e41

eu-west-1

ami-e31a6594

ami-971a65e0

sa-east-1

ami-0972f214

ami-5972f244

us-east-1

ami-116d857a

ami-896d85e2

us-west-1

ami-05cf2541

ami-21cf2565

us-west-2

ami-818eb7b1

ami-ed8eb7dd

cn-north-1

ami-888815b1

-

us-gov-west-1

ami-35b5d516

ami-3fb5d51c

AWS CLI

Enumerate Debian account AMI:

  • AWS profile default Region:

    aws ec2 describe-images --owners 379101102735 --filters "Name=architecture,Values=x86_64" "Name=name,Values=debian-jessie-*" "Name=root-device-type,Values=ebs" "Name=virtualization-type,Values=hvm"

  • Debian canonical Region:

    aws --region us-east-1 ec2 describe-images --owners 379101102735 --filters "Name=architecture,Values=x86_64" "Name=name,Values=debian-jessie-*" "Name=root-device-type,Values=ebs" "Name=virtualization-type,Values=hvm"

  • See describe-images documentation.


The Jessie release of Debian was built with bootstrap-vz (formerly called build-debian-cloud), and contains the CloudInit package.

Please note that a Marketplace image volume cannot be attached to another running instance (For example, to repair a broken /etc/fstab, or /etc/network/interfaces). This is a limitation of all Marketplace images, as described here: Official AWS documentation

Fun with cloud-init

You may wish to play with cloud-init, for example:

   1 #cloud-config
   2 package_update: true
   3 package_upgrade: true
   4 package_reboot_if_required: true
   5 packages:
   6 - pwgen
   7 - less
   8 locale: fr_FR.UTF-8
   9 ssh_authorized_keys:
  10 - ssh-rsa AAAAB3Nz....89dGp5 me@mykey1
  11 - ssh-rsa AAAAB3Nz....89dGp5 me@mykey2
  12 final_message: "The system is finally up, after $UPTIME seconds"


See also Cloud and Teams/Cloud.