Before you start
-
Make sure that you, or the service account that you use on your behalf, is in a group that has the
adminrole within your tenant; for example, the defaultadminsgroup. You can check this in the Administration → IAM section of the web console. - Install and initialize the Nebius AI Cloud CLI.
-
Check that your project ID is saved in the Nebius AI Cloud CLI profile configuration:
-
Install the jq to extract IDs and tokens from JSON data returned by the Nebius AI Cloud CLI:
- Create a service account, if you don’t have one already.
-
Get the ID of the service account for which you want to issue the key and save it to an environment variable:
Create a key pair
Create an access key pair and save its ID to an environment variable:--expires at allows you to create a temporary access key. To set the key’s expiration date, use the ISO 8601 format. Here’s how to store an environment variable with a one-year expiration date:
--expires-at $EXPIRES_AT.
Configure your AWS CLI profile
In this example, you will configure the AWS CLI to work with Object Storage on behalf of the service account.-
Get the access key pair AWS ID and save it to an environment variable:
-
Get the secret key and save it to an environment variable:
-
Add the key to the AWS CLI configuration:
-
Depending on your project region, add the Nebius AI Cloud region ID and the Object Storage endpoint URL to the AWS CLI configuration:
For example, run the following commands for a project in
eu-north1: