Package org.wso2.carbon.ec2client

Examples of org.wso2.carbon.ec2client.EC2Client.describeAddresses()


        try {
            EC2Client ec2Client = new EC2Client(args[0], args[1]);
            String elasticIP = System.getenv("ELASTIC_IP");

            // Assign the elastic IP to itself, if not already assigned
            List<Address> addressList = ec2Client.describeAddresses(new String[]{elasticIP});
            String localInstanceId = System.getenv("instance_id");

            // Associate this address with this instance only if any other instance has not assigned it to itself
            for (Address address : addressList) {
                if (address.getInstance() == null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.