Cloud bursting with HP CloudSystem Matrix infrastructure orchestration and HP Cloud Services or Amazon EC2
11 
Define capacity pools 
Edit the sample capacity pool definition file copied to ec2-cloud-pools.xml. Add <Resources> elements to 
represent additional capacity pools as needed. 
A capacity pool definition appears as a Cloud Resource in the Matrix infrastructure orchestration Designer, Self 
Service Portal, and Console. 
The following is the sample EC2 capacity pool definition file. 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<CapacityPool xmlns="http://hp.com/2007/ess/sw/model/InfrastructureUtilitySchema"> 
 <!-- 
 Add one Resources element for each cloud capacity pool. 
 The capacity pool configuration is specified in a property file based 
 on the pool Id, such as "sample-ec2-pool.properties". 
 --> 
  <Resources xsi:type="CloudCapacityPool" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <Id>sample-ec2-pool</Id> 
    <Name>Sample EC2 capacity pool</Name> 
    <Provider>Amazon EC2</Provider> 
  </Resources> 
</CapacityPool> 
where: 
  The <Id> value is used to locate the corresponding capacity pool properties file. 
  The <Name> value is the Cloud Resource name. 
  The <Provider> value is the capacity pool's source provider. 
Configure capacity pools 
For each pool defined in ec2-cloud-pools.xml, copy the sample properties file sample-ec2-
pool.properties to <pool-id>.properties. The <pool-id> in the filename must match the <Id> value in 
ec2-cloud-pools.xml. Set appropriate values for each property, following the instructions in the sample file. 
The following is the sample EC2 capacity pool properties file. 
# The API endpoint used to interact with the cloud provider. 
# Note: The use of an HTTPS endpoint may require a cloud provider certificate 
# to be added to the trust store. Retrieve the root certificate (e.g., 
# VeriSign Trust Network) from the provider and place it in a file. Add it to 
# the trust store using the command "mxcert -t -f <certificate-file>". 
provider.api.endpoint=https://ec2.us-east-1.amazonaws.com 
# Specify proxy settings if required to access the provider API endpoint 
proxy.host= 
proxy.port= 
# Access Key ID for the Amazon AWS account 
provider.account.accesskeyid= 
# An mxpassword entry must be created with this key name, containing the 
# account Secret Access Key value associated with the Access Key ID. 
# Use the command "mxpassword -a -x <key>=<aws-secret-access-key>", where 
# in this example the <key> is "ec2-account-1". 
provider.account.mxpassword.key=ec2-account-1 
# ID of a pre-configured VPC into which to provision resources. If defined, 
# the capacity pool specifically targets the specified VPC and cannot be used 
# to provision resources to an EC2 availability zone. 
#provider.vpc.id=vpc-1a2b3c4d 
# An ID used to correlate AWS accounts (and availability zone names 
# specifically) across cloud capacity pools. It does not need to contain an 
# actual account name. The value appears in EC2 subnet IDs; it is not used 
# if provider.vpc.id is defined. 
provider.account.id=acct1 










