Creating a service account
Create a service account to manage resources under a different account.
Create a service account
-
Log in to the management console
. -
Click the line with the name of the folder where you want to create a service account.
-
At the top of the screen, go to the Service accounts tab.
-
Click Create service account.
-
Enter the name of the service account.
Name format requirements:
- The length can be from 3 to 63 characters.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter. The last character can't be a hyphen.
Make sure the service account name is unique within your cloud.
-
Click Create.
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.
-
Check the description of the command for creating a service account:
ncp iam service-account create --help
-
Create a service account named
my-robot
:ncp iam service-account create --name my-robot
The name format requirements are as follows:
- The length can be from 3 to 63 characters.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter. The last character can't be a hyphen.
Examples
Add a description when creating
Create a service account with the following name and description:
ncp iam service-account create --name my-robot \
--description "this is my favorite service account"