%BOOK_ENTITIES; ]>
Enabling the EC2 and S3 Compatible Interface The software that provides AWS API compatibility is installed along with &PRODUCT;. You must enable the services and perform some setup steps prior to using it. Set the global configuration parameters for each service to true. See . Create a set of &PRODUCT; service offerings with names that match the Amazon service offerings. You can do this through the &PRODUCT; UI as described in the Administration Guide. Be sure you have included the Amazon default service offering, m1.small. As well as any EC2 instance types that you will use. If you did not already do so when you set the configuration parameter in step , restart the Management Server. # service cloud-management restart The following sections provides details to perform these steps
Enabling the Services To enable the EC2 and S3 compatible services you need to set the configuration variables enable.ec2.api and enable.s3.api to true. You do not have to enable both at the same time. Enable the ones you need. This can be done via the &PRODUCT; GUI by going in Global Settings or via the API. The snapshot below shows you how to use the GUI to enable these services Use the GUI to set the configuration variable to true Using the &PRODUCT; API, the easiest is to use the so-called integration port on which you can make unauthenticated calls. In Global Settings set the port to 8096 and subsequently call the updateConfiguration method. The following urls shows you how: http://localhost:8096/client/api?command=updateConfiguration&name=enable.ec2.api&value=true http://localhost:8096/client/api?command=updateConfiguration&name=enable.ec2.api&value=true Once you have enabled the services, restart the server.
Creating EC2 Compatible Service Offerings You will also need to define compute service offerings with names compatible with the Amazon EC2 instance types API names (e.g m1.small,m1.large). This can be done via the &PRODUCT; GUI. Go under Service Offerings select Compute offering and either create a new compute offering or modify an existing one, ensuring that the name matches an EC2 instance type API name. The snapshot below shows you how: Use the GUI to set the name of a compute service offering to an EC2 instance type API name.
Modifying the AWS API Port (Optional) The AWS API listens for requests on port 7080. If you prefer AWS API to listen on another port, you can change it as follows: Edit the files /etc/cloud/management/server.xml, /etc/cloud/management/server-nonssl.xml, and /etc/cloud/management/server-ssl.xml. In each file, find the tag <Service name="Catalina7080">. Under this tag, locate <Connector executor="tomcatThreadPool-internal" port= ....<. Change the port to whatever port you want to use, then save the files. Restart the Management Server. If you re-install &PRODUCT;, you will have to re-enable the services and if need be update the port.