Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

rOCCI:EC2 Backend

From EGIWiki
Revision as of 22:17, 15 September 2014 by Zsustr (talk | contribs) (→‎Configuration)
Jump to navigation Jump to search

rOCCI-server's EC2 backend has been primarily developed with Amazon Web Services. It is expected to work with other CMFs implementing the EC2 interface, but this guide considers AWS.

Please note that for an overview of operations that each method in the backend performs within the AWS cloud, you may consult the RubyDoc documentation for the EC2 backend. It lists Server-side Effects for each public method that has any.

Installation

TODO: Is EC2 backend going to be included in a separate package?

Configuration

  1. You need an ASW Access Key, and an accompanying Secret Access Key, for a valid ASW account. Obviously, obtaining those is beyond the scope of this document.
  2. Edit Virtual Host configuration file /etc/apache2/sites-available/occi-ssl or /etc/httpd/conf.d/occi-ssl.conf, respectively, and change the following:
    1. attribute ROCCI_SERVER_BACKEND must be set to ec2 as shown:
      SetEnv ROCCI_SERVER_BACKEND          ec2
      

      Note: Do not confuse with attribute ROCCI_SERVER_HOOKS; that has another purpose.

    2. attribute ROCCI_SERVER_ONE_PASSWD must be set to give the password for the rocci user set up in the previous step:
      SetEnv ROCCI_SERVER_EC2_AWS_ACCESS_KEY_ID       <actual_id_edited_out>
      SetEnv ROCCI_SERVER_EC2_AWS_SECRET_ACCESS_KEY   <actual_key_edited_out>
      
    3. If necessary, modify your region and availability zone settings. The default configuration is for western Europe:
      SetEnv ROCCI_SERVER_EC2_AWS_REGION              eu-west-1
      SetEnv ROCCI_SERVER_EC2_AWS_AVAILABILITY_ZONE   eu-west-1a
      

      For a list of applicable regions see the Amazon EC2 Regions list.

    4. To speed up interaction with AWS, consider also setting filters for images. This speeds up the construction and transfer of the OCCI model.
      1. SetEnv ROCCI_SERVER_EC2_IMAGE_FILTERING_POLICY
      2. SetEnv ROCCI_SERVER_EC2_IMAGE_FILTERING_IMAGE_LIST

      This is a TODO!

    5. Network permissions
      1. SetEnv ROCCI_SERVER_EC2_NETWORK_CREATE_ALLOWED
      2. SetEnv ROCCI_SERVER_EC2_NETWORK_DESTROY_ALLOWED
      3. SetEnv ROCCI_SERVER_EC2_NETWORK_DESTROY_VPN_GWS

      This is a TODO!


TODO: AuthN options