Guest User!

You are not Sophos Staff.

UTM 9 Amazon EC2 AMIs

Hi guys,

here come the Beta Amazon EC2 images! Just press the "launch AMI" link and fire them up [:)]
[LEFT]


[FONT=Courier New]
eu-west-1 (Ireland)
  ASG 9.000-8 (x86_64 ebs):: ami-b71713c3 :: https://console.aws.amazon.com/ec2/home?region=eu-west-1#launchAmi=ami-b71713c3

us-east-1 (North Virginia)
  ASG 9.000-8 (x86_64 ebs):: ami-31b81458 :: https://console.aws.amazon.com/ec2/home?region=us-east-1#launchAmi=ami-31b81458

us-west-1 (Northern California)
  ASG 9.000-8 (x86_64 ebs):: ami-eb3510ae :: https://console.aws.amazon.com/ec2/home?region=us-west-1#launchAmi=ami-eb3510ae

us-west-2 (Oregon)
  ASG 9.000-8 (x86_64 ebs):: ami-02f17e32 :: https://console.aws.amazon.com/ec2/home?region=us-west-2#launchAmi=ami-02f17e32

ap-northeast-1 (Tokyo)
  ASG 9.000-8 (x86_64 ebs):: ami-42d06243 :: https://console.aws.amazon.com/ec2/home?region=ap-northeast-1#launchAmi=ami-42d06243

ap-southeast-1 (Singapore)
  ASG 9.000-8 (x86_64 ebs):: ami-0823625a :: https://console.aws.amazon.com/ec2/home?region=ap-southeast-1#launchAmi=ami-0823625a

sa-east-1 (Sao Paulo)
  ASG 9.000-8 (x86_64 ebs):: ami-ce2bf5d3 :: https://console.aws.amazon.com/ec2/home?region=sa-east-1#launchAmi=ami-ce2bf5d3
[/FONT]

[/LEFT]

There are a few new features regarding the EC2 support:

  • SSH Key Pair (ec2-user, loginuser and root): If SSH Key Pair is set during AMI launch, SSH Keys will be installed for ec2-user, loginuser and root. Root access is disabled by default and must be enabled via SSH configuration. Login with ec2-user will show you the basic setup and brings you afterwards directly to the confd-client configuration program.
  • User Data: Its possible to run Basic Setup and set an ACC server via User Data field. If thats not sufficient for you, you could also run custom shell scripts!
  • 30GB disk: EBS volume increased to 30GB storage



Examples:

Start micro instance in Europe with basic setup and SSH access:

[FONT=Courier New]ec2-run-instances --region eu-west-1 -t t1.micro -k my_ec2_key -d "{ hostname => 'ec2-demo.local', organization => 'Astaro', city => 'Karlsruhe', country => 'de',  email => 'admin@domain.com', password => 'secret' }" ami-19ba836d[/FONT]



Start small instance in North Virginia with basic setup and ACC:

[FONT=Courier New]ec2-run-instances --region us-east-1 -t m1.small -d "{ hostname => 'ec2-demo.local',  organization => 'Astaro', city => 'Karlsruhe', country => 'de',   email => 'admin@domain.com', password => 'secret', acc_server => 'my_acc_server.name', acc_secret => 'secret' }" ami-[/FONT][FONT=Courier New]94934ffd[/FONT]



Start medium instance in [FONT=Courier New]Tokyo with custom script:[/FONT]

[FONT=Courier New]ec2-run-instances --region [/FONT][FONT=Courier New]ap-northeast-1[/FONT][FONT=Courier New] -t c1.medium -d '#!/bin/bash
echo "Hello World"' ami-[/FONT][FONT=Courier New]aac273ab[/FONT]



Run Basic Setup via SSH:

[FONT=Courier New]ssh -l ec2-user ec2-....compute.amazonaws.com[/FONT]



Enable SSH root login on EC2 instance:

[FONT=Courier New]ssh -l ec2-user ec2-....compute.amazonaws.com set ssh root_login without-password[/FONT]



Have fun
 Ulrich
  • hi there,

    is it possible to restore a backup at instance creation time or to pass the backupfile and the backup-restore command via userdata?

    Alternativly, could i create an own preconfigured ami from the main-ami?
    What do i have to do with the ec2-sshkey setupscripts?
  • There is no automatic way to do this. My initial thought was to use the user data, but user data is limited to 64k or so, so an backup will not fit.

    There are a couple of multiple ways to archive that:
     a) create a custom script to import a backup
     b) custom image with backup stored as /var/confd/var/storage/cfg
     c) use basic setup with configured SSH key access and import backup via SSH script

    Let me know if you need more details on any of these methods...

    Cheers
     Ulrich
Share Feedback
×

Submitted a Tech Support Case lately from the Support Portal?