Creating Access Keys (AK and SK)
In this example, OBS data is imported to GaussDB(DWS) databases. When users who have registered with the public cloud use clients, call APIs, or use SDKs to access OBS, access keys (AK/SK) are required for user authentication Therefore, if you want to connect to the GaussDB(DWS) database through a client or a JDBC/ODBC application to access OBS, obtain the access keys (AK and SK) first.
- Access Key ID (AK): indicates the ID of the access key, which is a unique identifier used in conjunction with a secret access key to sign requests cryptographically.
- Secret access key (SK): indicates key used together with its associated AK to cryptographically sign requests. The AK and SK are used together to identify a request sender to prevent the request from being modified.
Creating Access Keys (AK and SK)
Before creating the AK/SK pair, ensure that your account (used to log in to the management console) has passed real-name authentication.
To create an AK and an SK on the OBS console, perform the following steps:
- Log in to the GaussDB(DWS) management console.
- Move the pointer to the username in the upper right corner and choose My Credentials
- In the left navigation tree, click Access Keys.
If an access key already exists in the access key list, you can directly use it. However, you can view only Access Key ID in the access key list. You can download the key file containing the AK and SK only when adding an access key. If you do not have the key file, click Create Access Key to create one.
- Each user can create a maximum of two valid access keys. If two access keys exist, delete one of them and create a new one. To delete an access key, you need to enter the current login password and email address or SMS verification code. Deletion is successful only after the verification is passed.
- To ensure account security, change your AK/SK pairs periodically and keep them safe.
- Click Create Access Key.
- In the Create Access Key dialog box that is displayed, enter the password and the verification code and click OK.
- If you have not bound an email address or mobile phone number, enter only the password.
- If you have bound an email address and a mobile phone number, you can use either of them for verification.
- In the Download Access Key dialog box that is displayed, click OK to save the access keys to default download path of your browser.
- To prevent the access key from being leaked, keep it secure.
- If you click Cancel in the dialog box, the AKs will not be downloaded, and you cannot download them later. In this case, re-create an AK.
- Open the downloaded credentials.csv file to obtain the access keys (AK and SK).
Precautions
If you find that your AK/SK pair is abnormally used (for example, the AK/SK pair is lost or leaked) or will be no longer used, delete your AK/SK pair in the access key list or contact the administrator to reset your AK/SK pair.
When deleting the access keys, you need to enter the login password and either an email or mobile verification code.
Deleted AK/SK pairs cannot be restored.
Last Article: About Parallel Data Import from OBS
Next Article: Uploading Data to OBS
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.