Creating static access keys
These are instructions for how to create static access keys for a service account.
If you do not have a service account yet, create one and add it to a group to grant it permissions.
To create a static access key:
-
In the management console
, select the folder the service account belongs to. -
At the top of the screen, go to the Service accounts tab.
-
Choose a service account and click the line with its name.
-
Click Create new key in the top panel.
-
Select Create static access key.
-
Specify the key description and click Create.
-
Save the ID and private key.
Alert
Once you close the dialog, the private key value will be unavailable.
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
See the description of the create static access key command:
ncp iam access-key create --help
-
Select a service account (for example,
my-robot
):ncp iam service-account list
Result:
+----------------------+------------------+-------------------------------+ | ID | NAME | DESCRIPTION | +----------------------+------------------+-------------------------------+ | aje6o61dvog2******** | my-robot | | | aje9sda1ufvq******** | blabla | bla bla bla is my description | +----------------------+------------------+-------------------------------+
-
Create an access key for the
my-robot
service account:ncp iam access-key create --service-account-name my-robot
Result:
access_key: id: aje6t3vsbj8l******** service_account_id: ajepg0mjt06s******** created_at: "2018-11-22T14:37:51Z" key_id: 0n8X6WY6S24N******** secret: JyTRFdqw8t1kh2-OJNz4JX5ZTz9Dj1rI********
-
Save the ID
key_id
andsecret
key. You will not be able to get the key value again.
Examples
Add a description when creating
Add a description when creating an access key.
ncp iam access-key create --service-account-name my-robot \
--description "this key is for my bucket"