Resource
dcloud_iam_user_role_assignment
Assigns an IAM role to an IAM user: the user holds the role's policies.
Example Usage
resource "dcloud_iam_user_role_assignment" "alice_operator" {
user_id = dcloud_iam_user.alice.id
role_id = dcloud_iam_role.operator.id
}Schema
Required
role_id(String) The role to assign. Changing it replaces the resource.user_id(String) The id of the parent resource ({id}in the path). Changing it replaces the resource.
Read-Only
id(String) The resource's id.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_iam_user_role_assignment.alice_operator <iam-user-id>/<role-id>Generated from the provider's schema.
Related