List of usage examples for com.amazonaws.services.elasticbeanstalk AWSElasticBeanstalkClient AWSElasticBeanstalkClient
AWSElasticBeanstalkClient(AwsSyncClientParams clientParams)
From source file:br.com.ingenieux.mojo.beanstalk.BeanstalkTestBase.java
License:Apache License
@Override protected void setUp() throws Exception { super.setUp(); Properties properties = new Properties(); properties.load(new FileInputStream("test.properties")); this.properties = properties; configureMojos();//w w w . j a va 2 s . c o m this.credentials = uploadSourceBundleMojo.getAWSCredentials().getCredentials(); this.service = new AWSElasticBeanstalkClient(credentials); }
From source file:com.tracermedia.maven.plugins.AbstractBeanstalkMojo.java
License:Open Source License
protected AWSElasticBeanstalk getBeanstalkClient() { if (_beanstalkClient == null) { AWSCredentials cred = new BasicAWSCredentials(accessKey, secretKey); _beanstalkClient = new AWSElasticBeanstalkClient(cred); }/*from www. j av a2 s . c o m*/ return _beanstalkClient; }
From source file:fr.xebia.workshop.caching.CreateTomcat.java
License:Apache License
public static void main(String[] args) throws Exception { AWSCredentials awsCredentials = AmazonAwsUtils.loadAwsCredentials(); AWSElasticBeanstalk beanstalk = new AWSElasticBeanstalkClient(awsCredentials); beanstalk.setEndpoint("elasticbeanstalk.eu-west-1.amazonaws.com"); WorkshopInfrastructure workshopInfrastructure = new WorkshopInfrastructure() .withTeamIdentifiers("1" /*, "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"*/) .withAwsAccessKeyId(awsCredentials.getAWSAccessKeyId()) .withAwsSecretKey(awsCredentials.getAWSSecretKey()).withKeyPairName("web-caching-workshop") .withBeanstalkNotificationEmail("cleclerc@xebia.fr"); CreateTomcat createTomcat = new CreateTomcat(beanstalk, workshopInfrastructure); createTomcat.createServers();// www . j a v a 2s. com }
From source file:fr.xebia.workshop.caching.WorkshopInfrastructureCreator.java
License:Apache License
public static void main(String[] args) { // AMAZON SERVICES AWSCredentials awsCredentials = AmazonAwsUtils.loadAwsCredentials(); AmazonEC2 ec2 = new AmazonEC2Client(awsCredentials); ec2.setEndpoint("ec2.eu-west-1.amazonaws.com"); AWSElasticBeanstalk beanstalk = new AWSElasticBeanstalkClient(awsCredentials); beanstalk.setEndpoint("elasticbeanstalk.eu-west-1.amazonaws.com"); AmazonRoute53 route53 = new AmazonRoute53Client(awsCredentials); ExecutorService executor = Executors.newFixedThreadPool(3); // WORKSHOP CONFIGURATION WorkshopInfrastructure workshopInfrastructure = new WorkshopInfrastructure() .withTeamIdentifiers("1", "2" /*, "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" */) .withAwsAccessKeyId(awsCredentials.getAWSAccessKeyId()) .withAwsSecretKey(awsCredentials.getAWSSecretKey()).withKeyPairName("web-caching-workshop") .withBeanstalkNotificationEmail("cleclerc@xebia.fr"); // CREATE WORKSHOP INFRASTRUCTURE CreateCachingProxyServers createCachingProxyServers = new CreateCachingProxyServers(ec2, route53, workshopInfrastructure);/*from w w w . j av a 2 s .c om*/ executor.execute(createCachingProxyServers); CreateTomcat createTomcat = new CreateTomcat(beanstalk, workshopInfrastructure); executor.execute(createTomcat); executor.shutdown(); try { executor.awaitTermination(10, TimeUnit.MINUTES); } catch (Exception e) { e.printStackTrace(); } logger.info("Workshop infrastructure created"); }
From source file:fr.xebia.workshop.nginx.CreateTomcat.java
License:Apache License
public static void main(String[] args) throws Exception { AWSCredentials awsCredentials = AmazonAwsUtils.loadAwsCredentials(); AWSElasticBeanstalk beanstalk = new AWSElasticBeanstalkClient(awsCredentials); beanstalk.setEndpoint("elasticbeanstalk.eu-west-1.amazonaws.com"); WorkshopInfrastructure workshopInfrastructure = new WorkshopInfrastructure() .withTeamIdentifiers("1"/*, "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"*/) .withAwsAccessKeyId(awsCredentials.getAWSAccessKeyId()) .withAwsSecretKey(awsCredentials.getAWSSecretKey()).withKeyPairName("nginx-workshop") .withBeanstalkNotificationEmail("slemesle@xebia.fr"); CreateTomcat createTomcat = new CreateTomcat(beanstalk, workshopInfrastructure); createTomcat.createServers();/*from ww w.jav a 2 s. c om*/ }
From source file:jetbrains.buildServer.util.amazon.AWSClients.java
License:Apache License
@NotNull public AWSElasticBeanstalkClient createElasticBeanstalkClient() { return withRegion(myCredentials == null ? new AWSElasticBeanstalkClient(myClientConfiguration) : new AWSElasticBeanstalkClient(myCredentials, myClientConfiguration)); }
From source file:org.cloudml.connectors.BeanstalkConnector.java
License:Open Source License
public BeanstalkConnector(String login, String pass, String region) { awsCredentials = new BasicAWSCredentials(login, pass); beanstalkClient = new AWSElasticBeanstalkClient(awsCredentials); this.beanstalkEndpoint = String.format("elasticbeanstalk.%s.amazonaws.com", region); beanstalkClient.setEndpoint(beanstalkEndpoint); this.rdsEndpoint = String.format("rds.%s.amazonaws.com", region); rdsClient = new AmazonRDSClient(awsCredentials); rdsClient.setEndpoint(rdsEndpoint);//from w ww . ja v a 2s.c o m this.sqsEndpoint = String.format("sqs.%s.amazonaws.com", region); sqsClient = new AmazonSQSAsyncClient(awsCredentials); sqsClient.setEndpoint(this.sqsEndpoint); }