Updated on 2023-10-19 GMT+08:00

Key Configuration

Obtaining Key Information

  1. Log in to Huawei Cloud and choose My Account > My Credentials in the upper right corner. The My Credentials page is displayed.
  2. In the navigation pane on the left, choose Access Keys. Click Create Access Key to generate a new access key and download and save it.

Configuring the AK/SK

Using Wizard

Run config add to add a key:

$ s config add 

? Please select a provider: (Use arrow keys)
  Alibaba Cloud (alibaba) 
  AWS (aws) 
  Azure (azure) 
  Baidu Cloud (baidu) 
  Google Cloud (google) 
> Huawei Cloud (huawei) 
  Tencent Cloud (tencent) 
  Custom (others) 
After selecting a provider, you will be prompted to enter the corresponding information:
s config add 

? Please select a provider: Huawei Cloud (huawei)
? AccessKeyID **********
? SecretAccessKey **********
? Please create alias for key pair. If not, please enter to skip default

Using a Command

Add a key using a command:

$ s config add --AccessKeyID ****** --SecretAccessKey ******
Or:
$ s config add -kl AccessKeyID,SecretAccessKey -il ${AccessKeyID},${SecretAccessKey}