Setting Up an OBS Environment
- Register a cloud service account.
Ensure that you have a cloud service account before using OBS.
- Open a browser.
- Visit www.huaweicloud.com/en-us/.
- In the upper right corner of the page, click Register.
- Enter the registration information and click Register.
- Subscribe to OBS.
Ensure that your account balance is sufficient before using OBS.
- Log in to OBS Console.
- Click Billing in the upper right corner of the page to go to the billing center.
- Click Top Up. The dialog box for top-up is displayed.
- Top up the account as prompted.
- After the top-up is successful, close the window and go back to the homepage of the management console.
- Click Object Storage Service to subscribe to OBS and enter OBS Console.
- Create access keys.
OBS uses AKs and SKs in user accounts for signature verification to ensure that only authorized accounts can access specified OBS resources. Detailed explanations about AK and SK are as follows:
- An access key ID (AK) defines a user who accesses the OBS system. An AK belongs to only one user, but one user can have multiple AKs. The OBS system recognizes the users who access the system by their access key IDs.
- A secret access key (SK) is the key used by users to access OBS. It is the authentication information generated based on the AK and the request header. An SK matches an AK, and they group into a pair.
Access keys are classified into permanent access keys (AK/SK) and temporary access keys (AK/SK and security token). A user can create a maximum of two valid permanent access keys. Temporary access keys can be used to access OBS only within the specified validity period. After the temporary access keys expire, they need to be obtained again. For security purposes, you are advised to use temporary access keys to access OBS, or periodically update your access keys if you use permanent access keys. The following describes how to obtain access keys of these two types.
- Permanent access keys:
- Log in to OBS Console.
- In the upper right corner of the page, hover the cursor over the username and choose My Credentials.
- On the My Credentials page, select Access Keys in the navigation pane on the left.
- On the Access Keys page, click Create Access Key.
- In the Create Access Key dialog box that is displayed, enter the password and verification code.
- If you have not bound an email address or mobile number, enter only the password.
- If you have bound an email address and a mobile number, you can select the verification by either email or mobile phone.
- Click OK.
- In the Download Access Key dialog box that is displayed, click OK to save the access keys to your browser's default download path.
- Open the downloaded credentials.csv file to obtain the access keys (AK and SK).
- A user can create a maximum of two valid access keys.
- Keep the access key properly. If you click Cancel in the dialog box, the access keys will not be downloaded, and cannot be obtained later. You can re-create access keys if you need to use them.
- Temporary access keys:
The temporary AK/SK and security token are temporary access tokens issued by the system to users. The validity period ranges from 15 minutes to 24 hours which can be set using APIs. After the validity period expires, users need to obtain the access keys again. The temporary AK/SK and security token shall observe the principle of least privilege. When the temporary AK/SK are used for authentication, the temporary AK/SK and security token must be used at the same time.
For details about how to obtain temporary access keys, see Obtaining a Temporary Access Key and Security Token.
For details about how to use temporary access keys, see Creating an Instance of OBSClient.
Last Article: Before You Start
Next Article: Preparing a Development Environment
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.