Cloud:Storage:CreateCredentials: Difference between revisions

From ZeroOne Tech Public Wiki
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Linux ==
=== Linux ===


# Ubuntu 24.04
# Ubuntu 24.04


```
<pre>
apt install python3-pip python3-venv
apt install python3-openstackclient
mkdir ~/openstack
</pre>
python3 -m venv ~/openstack
 
source ~/openstack/bin/activate
// ADD SCREENSHOT HERE FOR RC FILE
pip install python-openstackclient
https://cloud.zeroone.tech/project/api_access/openrc/
```
 
<pre>
source default-openrc.sh
Please enter your OpenStack Password for project docs as user [Openstack User]:
</pre>
 
You can now use the following command
<pre>
openstack ec2 credentials create
</pre>
 
Which will give you output similar too:
<pre>
+------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| 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                                                                                                          |
+------------+-------------------------------------------------------------------------------------------------------------------------------------------+
</pre>
 
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.
 
<strong>IMPORTANT NOTE:</strong> Please note there is only one EC2 credential per user tenant, <strong>re-creating this credential will replace the credential and any services using this credential being lost.</strong>

Latest revision as of 01:30, 6 May 2024

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.