Generating S3 API Keys

Install Python OpenStack Client

  1. Make sure you have Python 3 (download python)
    • Windows: Set the PYTHONPATH environment variable 
      On your desktop, right-click My Computer, and then click Properties. In the System Properties dialog box, click Advanced, and then click Environment Variables. Under User variables for <username> (the top half of this window), click New. In the New User Variable dialog box, type "PYTHONPATH" in the Variable name box. In the Variable Value box, type "%PYTHONPATH%;C:\YourPythonFolder" (replace "C:\YourPythonFolder" with the location where you installed Python), and then click OK.
  2. Install python-swiftclient using pip:

    pip install python-openstackclient

    You may have the run the command with sudo if you receive a permission denied error:

    sudo pip install python-openstackclient

Configure the Openstack Client

Make sure that you have set up the environment variables that the Openstack client expects. You can set them manually or source your Openstack RC file. To download your Openstack RC file, follow the instructions here. On Linux, you can configure your client with the following:

source path/to/rc/file


Create the S3 API Keys

  1. Once the python-openstack client has been installed run the following command to create a new S3 API key:

     openstack ec2 credentials create
  2. Below is example output from the above command:

    +------------+------------------------------------------------------------------------------------------------------------------------------------------------+
    | Field      | Value                                                                                                                                          |
    +------------+------------------------------------------------------------------------------------------------------------------------------------------------+
    | access     | 1234567890abcdefghijklmnopqrstuvwxyz                                                                                                           |
    | links      | {'self': 'https://identity.cloud.sdsc.edu:5000/v3/users/12121212121212121212121212121212/credentials/OS-EC2/1234567890abcdefghijklmnopqrstuv'} |
    | project_id | abababababababababababababababab                                                                                                               |
    | secret     | abcdefghijklmnopqrstuvwxyz1234567890                                                                                                           |
    | trust_id   | None                                                                                                                                           |
    | user_id    | 12121212121212121212121212121212                                                                                                               |
    +------------+------------------------------------------------------------------------------------------------------------------------------------------------+
  3. The access value is the AWS Access Key Id and the secret value is the AWS Secret Access Key.