selectel_vpc_role_v2
Creates and manages a Project Administrator role for service users using public API v2. Selectel products support Identity and Access Management (IAM). For more information about roles, see the official Selectel documentation.
The role is assigned to the service user information about whom is retrieved from the selectel_vpc_user_v2 resource.
Example Usage
resource "selectel_vpc_role_v2" "role_1" {
project_id = selectel_vpc_project_v2.project_1.id
user_id = selectel_vpc_user_v2.user_1.id
}
Argument Reference
project_id
- (Required) Unique identifier of the associated Cloud Platform project. Changing this creates a new role. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Cloud Platform projects.user_id
- (Required) Unique identifier of the associated service user. Changing this creates a new role. Retrieved from the selectel_vpc_user_v2 resource.
Import
You can import a role:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=<username>
export OS_PASSWORD=<password>
terraform import selectel_vpc_role_v2.role_1 <project_id>/<user_id>
where:
<account_id>
— Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.<username>
— Name of the service user. To get the name, in the top right corner of the Control panel, go to the account menu ⟶ Profile and Settings ⟶ User management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.<password>
— Password of the service user.<project_id>
— Unique identifier of the Cloud Platform project, for example,a07abc12310546f1b9291ab3013a7d75
. To get the ID, in the Control panel, go to the Cloud Platform ⟶ project name ⟶ copy the ID of the required project.<user_id>
— Unique identifier of the associated service user, for example,abc1bb378ac84e1234b869b77aadd2ab
. To get the ID, in the top right corner of the Control panel, go to the account menu ⟶ Profile and Settings ⟶ User management ⟶ the Service users tab ⟶ copy the ID under the user name.