Cloud:Storage:CreateCredentials

From ZeroOne Tech Public Wiki
Revision as of 01:30, 6 May 2024 by Thefathacker (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Linux

  1. Ubuntu 24.04
apt install python3-openstackclient

// ADD SCREENSHOT HERE FOR RC FILE https://cloud.zeroone.tech/project/api_access/openrc/

source default-openrc.sh 
Please enter your OpenStack Password for project docs as user [Openstack User]:

You can now use the following command

openstack ec2 credentials create

Which will give you output similar too:

+------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| Field      | Value                                                                                                                                     |
+------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| access     | abababababababababababababababab                                                                                                          |
| links      | {'self': 'https://cloud.zeroone.tech:5000/v3/users/dededededededededededededededede/credentials/OS-EC2/abababababababababababababababab'} |
| project_id | bcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbc                                                                                                          |
| secret     | cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd                                                                                                          |
| trust_id   | None                                                                                                                                      |
| user_id    | dededededededededededededededede                                                                                                          |
+------------+-------------------------------------------------------------------------------------------------------------------------------------------+

The important value which will be unrecoverable after this point will be the secret. Also take note of the access as this will also be required for provisioning services with the S3 compatible API.

IMPORTANT NOTE: Please note there is only one EC2 credential per user tenant, re-creating this credential will replace the credential and any services using this credential being lost.