Skip to content

EC2 Credentials

To access your S3 Buckets from outside OpenStack (Swift) as well, you need to create so-called EC2 Credentials. This is currently only possible via CSC, which is described below.

List, create, Swift/S3 credentials:

Note

The parameters --user and --project are optional

Prerequisites

  • Basic knowledge of the Linux operating system (shell)
  • Access to a running Linux VM with configured OpenStack Client See setup OSC

The steps to be performed are:

1.) list and check existing ec2 credentials

#list the existing ec2 credentials
openstack ec2 credentials list

2.) create new ec2 credentials

openstack ec2 credentials create
# Output example
+------------+---------------------------------------------------------------------------------------------+
| Field      | Value                                                                                       |
+------------+---------------------------------------------------------------------------------------------+
| access     | 50640b2528c242118787dc1a45362b29                                                            |
| links      | {'self': 'http://keystone.service.ewcs.ch/v3/users/5634a179129f46a3b96921034547be4f/credent |
|            | ials/OS-EC2/50640b60j2c278e18887d91af5362b29'}                                              |
| project_id | 9e2827ff3fa642304h787da0acdb946d                                                            |
| secret     | 9b303f5958ff48d39432a6824ebe3322                                                            |
| trust_id   | None                                                                                        |
| user_id    | 566ca179166346a3b96935035847be4f                                                            |
+------------+---------------------------------------------------------------------------------------------+

3.) list new ec2 credentials

openstack ec2 credentials list
# Output example
+----------------------------------+----------------------------------+----------------------------------+----------------------------------+
| Access                           | Secret                           | Project ID                       | User ID                          |
+----------------------------------+----------------------------------+----------------------------------+----------------------------------+
| 50640b2528c242118787dc1a45362b29 | 9b303f5958ff48d39432a6824ebe3322 | 9e2827ff3fa642304h787da0acdb946d | 566ca179166346a3b96935035847be4f |
+----------------------------------+----------------------------------+----------------------------------+----------------------------------+

Note

The S3 endpoint for using the created EC2 Credentials with an S3 client is:

https://s3.ewstorage.ch

How to delete EC2 Credentials

To delete one or more EC2 credentials, please use the following command.

``` shell usage: openstack ec2 credentials delete [-h] [--user ] [--user-domain ] [ ...]

Example

openstack ec2 credentials delete 50640b2528c242118787dc1a45362b29