My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
AwsPropertiesFile  
The AWS properties file
Updated Feb 4, 2010 by chris.e....@gmail.com

Introduction

The AWS properties file specifies the Amazon web services credentials, the EC2KeyPair and which AMIs to launch.

Property Description
imageId.m1.small The 32 bit image to run (currently ami-6f2cc906)
imageId.m1.large The 64 bit image to run (currently ami-0129cc68)
imageId.m1.xlarge The 64 bit image to run (currently ami-0129cc68)
accountIdAWS account id
accessKeyAWS access key
secretKeyAWS secret key
keyNameThe name of the key pair
keyPairFileThe location of the AWS key pair file
sshDirThe directory containing the ssh executable, e.g. c:/cygwin/bin
startupScriptAn optional startup script

This is a standard Java properties file:

imageId.m1.small=ami-6f2cc906
imageId.m1.large=ami-0129cc68
imageId.m1.xlarge=ami-0129cc68
accessKey=...
secretKey=...
Comment by ladlest...@gmail.com, Sep 30, 2008

If I specify a different image for, say, imageId.m1.small, will the mvn plugin use it? If so, what are the requirements for that image to work with cloudtools?

Comment by project member chris.e....@gmail.com, Nov 16, 2008

Cloud Tools makes certain undocumented assumptions about the locations of installed software, the names of the MySQL and Tomcat service. I have talked with people who have used it with their own AMIs however.

Comment by davedand...@gmail.com, Mar 2, 2009

Is there more documentation regarding these images? I am having an issue with the default image and would like to upgrade some of the packages.

Comment by vasu...@gmail.com, Mar 10, 2009

i am trying to deploy application on EC2 , what value i need to give in aws.properties file for this "sshDir"

Comment by vasu...@gmail.com, Mar 11, 2009

yes i installed ssh client on my server, to connect amazon image is i need to install ssh server software on perticular image.

thanks in advance rechard.

Comment by project member chris.e....@gmail.com, Mar 11, 2009

sshDir needs to be set to the directory containing the ssh client executable.

Amazon AMIs already have sshd installed.

You just need to ensure that you have the ssh client installed on the machine that you run the maven/grails plugins on.

Comment by muraa...@gmail.com, Mar 24, 2009

Hi Chris, I did as mentioned in the screencast. I was trying to deploy a mytest webapp. I am getting this error

Deploying cluster ...
UP Local[c:\Projects\mytest\explodedWar\mytest] => S3[14BN6HVAXZ60CB3YTPR2.development-mytest-tmp-wa
r]
null

It simply says 'null'. Is there a log file that I can look into it ?

thanks Murali

Comment by project member chris.e....@gmail.com, Mar 25, 2009

Two things:

First, please send questions such as this to the mailing list.

Second, I think it is failing because it cannot SSH into the instance. Things to check: 1. Security group allows SSH? 2. Path to ssh command specified correctly in AWSproperty 3. Path to keyPairFile is specified correctly. (paths should be forward /'s not \'s even on windows)

Comment by muraa...@gmail.com, May 26, 2009

Thanks Chris, The problem was with the path separator in windows.

Comment by gsva...@gmail.com, Dec 18, 2009

Hi,

I get this error when I try to use "mvn cloudtools:deploy":

org.jets3t.service.S3ServiceException?: S3 PUT failed. XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidAccessKeyId</Code><Message>The AWS Access Key Id you provided does not exist in our records.

Any hints what could be wrong?

This is the full stack trace: DOWN S3[AKIAJZGOOTROJFKH5FEA.crsSell-1.0-SNAPSHOT-tmp-war] => Local[/tmp/crsSell-1.0-SNAPSHOT-tmp-war] WARN [org.jets3t.service.impl.rest.httpclient.RestS3Service] Unable to access bucket: AKIAJZGOOTROJFKH5FEA.crsSell-1.0-SNAPSHOT-tmp-war org.jets3t.service.S3ServiceException: S3 HEAD request failed. ResponseCode=403, ResponseMessage=Forbidden at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:339) at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRestHead(RestS3Service.java:488) at org.jets3t.service.impl.rest.httpclient.RestS3Service.isBucketAccessible(RestS3Service.java:714) at org.jets3t.apps.synchronize.Synchronize.run(Synchronize.java:695) at org.jets3t.apps.synchronize.Synchronize.main(Synchronize.java:999) WARN [org.jets3t.service.impl.rest.httpclient.RestS3Service] Unable to access bucket: AKIAJZGOOTROJFKH5FEA.crsSell-1.0-SNAPSHOT-tmp-war org.jets3t.service.S3ServiceException: S3 HEAD request failed. ResponseCode=403, ResponseMessage=Forbidden at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:339) at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRestHead(RestS3Service.java:488) at org.jets3t.service.impl.rest.httpclient.RestS3Service.isBucketAccessible(RestS3Service.java:714) at org.jets3t.service.S3Service.createBucket(S3Service.java:499) at org.jets3t.apps.synchronize.Synchronize.run(Synchronize.java:697) at org.jets3t.apps.synchronize.Synchronize.main(Synchronize.java:999) Exception in thread "main" org.jets3t.apps.synchronize.SynchronizeException: Unable to create/connect to S3 bucket: AKIAJZGOOTROJFKH5FEA.crsSell-1.0-SNAPSHOT-tmp-war at org.jets3t.apps.synchronize.Synchronize.run(Synchronize.java:702) at org.jets3t.apps.synchronize.Synchronize.main(Synchronize.java:999)


Sign in to add a comment
Powered by Google Project Hosting