private boolean associateElasticIp ( ) { String elasticIp = this . targetProperties . get ( Ec2Constants . ELASTIC_IP ) ; if ( ! Utils . isEmptyOrWhitespaces ( elasticIp ) ) { this . logger . fine ( "Associating an elastic IP with the instance. IP = " + elasticIp ) ; AssociateAddressRequest associateAddressRequest = new AssociateAddressRequest ( this . machineId , elasticIp ) ; this . ec2Api . associateAddress ( associateAddressRequest ) ; } return true ; }
Associates an elastic IP with the VM .