forked from ingenieux/beanstalker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
65 lines (40 loc) · 2.18 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
README for Beanstalker
CAUTION: Work in Progress
Basically, it is a maven plugin for the AWS BeanStalk APIs. In order to create a new application, download and install.
See test-war for a sample of configs.
To create a configuration, declare the plugin:
<plugin>
<groupId>br.com.ingenieux</groupId>
<artifactId>beanstalk-maven-plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<configuration>
<accessKey>
<applicationName>mapper-webclient</applicationName>
<environmentName>test</environmentName>
<solutionStack>32bit Amazon Linux running Tomcat 7</solutionStack>
<s3Bucket>mapper-web</s3Bucket>
</configuration>
</plugin>
For access keys, you could either store into your .m2/settings.xml (recommended):
<awsAccessKey>accessKey</awsAccessKey>
<awsSecretKey>secretKey</awsSecretKey>
... Or declare into the plugin as such:
<configuration>
<accessKey>access key</accessKey>
<secretKey>secret key</secretKey>
</configuration>
Once you do that, here are the steps to create a new environment:
$ mvn beanstalk:check-availability # (OPTIONAL) Checks the cname Availability
$ mvn beanstalk:upload-source-bundle # Uploads your .war file to S3, defined by s3Bucket
$ mvn beanstalk:create-application-version # Creates an Application with a Version as well
$ mvn beanstalk:create-environment # Creates (and launches) and environment
Log into the amazon console at http://aws.amazon.com/console and see the events. Once your app has been fired up, you can terminate it as such:
mvn beanstalk:terminate-environment
Other supported commands include:
$ mvn beanstalk:rebuild-environment # Recreates the environment
$ mvn beanstalk:restart-application-server # Restarts the Application Server
$ mvn beanstalk:create-application # Creates only the application
$ mvn beanstalk:create-storage-location # Creates a bucket for storing your logs
$ mvn beanstalk:delete-application-version # Deletes the application version
$ mvn beanstalk:delete-application # Deletes the application
$ mvn beanstalk:list-stacks # List the available stacks