Click the Create Key Pair button and then save the key pair to a file. Name it something you will remember, like "GenePattern." This is private key that is used in creating SSH connections to new AMI instances.
Set up your Amazon API credentials.
Select Account>Security Credentials.
Click the X.509 Certificates tab.
Click to Create a New Certificate. Note: An Amazon account may have two certificates. If your account already has two certificates, you will need to use one of them, or delete one and create a new one.
Download the private key and certificate, and save them in a known location, for example. ~/.ec2/prikey.pem and ~/.ec2/cert.pem.
Make sure these files have the correct security, otherwise using them for SSH will not work: chmod 600 ~/.ec2/*.pem
When the dialog box appears, enter the size of the EBS volume you want to create. We recommend at least 100 GB for GenePattern. If you are asked for a snapshot, select No Snapshot. This EBS has to be in the same availability zone as the GenePattern instance (us-east-1a).
Note the ID of the EBS once created. You will need this shortly.
Attach the EBS to the GenePattern Instance
Under Volumes, select the EBS volume that you have just created.
Click Attach Volume and select your GenePattern instance from the list.
Click Attach and wait several minutes for the volume to finish attaching.
Note the device name of the attached EBS.
Mount the EBS in the GenePattern Instance
SSH into your GenePattern instance using username and password "genepattern".
Confirm that the EBS has finished attaching by running "cat /proc/partitions" and making sure the attached name appears in the list.
If you need to format the EBS, run "sudo /sbin/fdisk ATTACHED" where "ATTACHED" is the attached name you were shown for the EBS, for example "/dev/sdk". Follow the prompts. This should give you a partition name, for example "/dev/sdk1". Make note of this.
If you need to partition the EBS (you will need to partition the EBS unless you are using a pre-existing EBS), run "sudo /sbin/mkfs -t ext3 PARTITION" where "PARTITION" is the partition name you were just given.
To mount the partition, run "sudo mount PARTITION /home/genepattern/GenePatternServer/data" where "PARTITION" is the partition name you were just given.
Start your GenePattern AMI
You can start GenePattern by running: /home/genepattern/GenePatternServer/StartGenePatternServer
You can view your GenePattern instance by navigating to http://ADDRESS:8080/gp where ADDRESS is the domain name in use or the Amazon Public DNS address.
GenePattern log files can be found at: /home/genepattern/GenePatternServer/Tomcat/logs/