https://github.com/danilodeluca/aws-beanstalk-java
Simple way to use AWS Elastic Beanstalk Java API
https://github.com/danilodeluca/aws-beanstalk-java
aws aws-beanstalk elasticbeanstalk java-api
Last synced: about 2 months ago
JSON representation
Simple way to use AWS Elastic Beanstalk Java API
- Host: GitHub
- URL: https://github.com/danilodeluca/aws-beanstalk-java
- Owner: danilodeLuca
- License: apache-2.0
- Created: 2018-03-12T20:08:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T21:29:07.000Z (about 7 years ago)
- Last Synced: 2025-02-06T07:13:27.256Z (4 months ago)
- Topics: aws, aws-beanstalk, elasticbeanstalk, java-api
- Language: Java
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Elastic Beanstalk - Java API Helper
Simple way to use AWS Elastic Beanstalk Java API
## Usage
You can checkout the class BeanstalkHelperExample.java.... Here is some code
### Rebuild Terminated Environment ById
```java
AWSElasticBeanstalk awsElasticBeastalk = getAWSElasticBeastalk();
new BeanstalkHelper(awsElasticBeastalk).byId().rebuildEnvironment("ENV_ID");
```
### Rebuild Terminated Environment ByName
```java
AWSElasticBeanstalk awsElasticBeastalk = getAWSElasticBeastalk();
new BeanstalkHelper(awsElasticBeastalk).byName().rebuildEnvironment("ENV_NAME");
```
### Terminate Environment ById
```java
AWSElasticBeanstalk awsElasticBeastalk = getAWSElasticBeastalk();
new BeanstalkHelper(awsElasticBeastalk).byId().terminateEnvironment("ENV_ID");
```
### Terminate Environment ByName
```java
AWSElasticBeanstalk awsElasticBeastalk = getAWSElasticBeastalk();
new BeanstalkHelper(awsElasticBeastalk).byName().terminateEnvironment("ENV_NAME");
```## Environment Creator
There is one option for creation your environments using EnvironmentCreator.java```java
AWSElasticBeanstalk aws = getAWSElasticBeastalk();
```
### Simple Environment
```java
EnvironmentCreator.creator(aws)
.newEnv()
.withApplicationName("APP NAME")
.withName("ENV NAME")
.withUrl("MY-ENV")
.withConfiguration("64bit Amazon Linux 2017.09 v2.8.4 running Docker 17.09.1-ce")
.withVersion("V1")
.process();
```
### Multiple Environments
```java
EnvironmentCreator.creator(aws)
.newEnv()
.withApplicationName("APP NAME")
.withName("ENV NAME")
.withUrl("MY-ENV")
.withConfiguration("64bit Amazon Linux 2017.09 v2.8.4 running Docker 17.09.1-ce")
.withVersion("V1")
.newEnv()
.withApplicationName("APP NAME")
.withName("ENV NAME2")
.withUrl("MY-ENV2")
.withConfiguration("64bit Amazon Linux 2017.09 v2.8.4 running Docker 17.09.1-ce")
.withVersion("V2")
.process();
```
### Environment from Saved configuration on your Application
```java
EnvironmentCreator.creator(aws)
.newEnv()
.withApplicationName("APP NAME")
.withName("ENV NAME")
.withUrl("MY-ENV")
.withSavedConfiguration("SAVED_CONFIG")
.process();
```
### Environment from Saved configuration on your Application and Wait to be ready
```java
EnvironmentCreator.creator(aws)
.newEnv()
.withApplicationName("APP NAME")
.withName("ENV NAME")
.withUrl("MY-ENV")
.withSavedConfiguration("SAVED_CONFIG")
.processAndWait();
```
### Killing your Environments
```java
EnvironmentCreator.creator(aws).killAll();
EnvironmentCreator.creator(aws).kill("APP NAME", "ENV NAME");
```