Resource
dcloud_iam_user
An IAM user: a person's or a machine's (type = "service_account") identity. Attach policies with dcloud_iam_user_policy_attachment.
Example Usage
resource "dcloud_iam_user" "ci" {
username = "ci"
display_name = "CI pipeline"
type = "service_account"
}Schema
Required
username(String) The user name, unique in the organization; an IAM user with a console password signs in with it. Up to 64 characters. Must match^[a-z0-9_-]+$. Changing it replaces the resource.
Optional
display_name(String) A readable name shown in the console. Up to 128 characters. Changing it replaces the resource.type(String) service_account for a program, which uses access keys and never a console password; default user. Defaultuser. One of:user,service_account. Changing it replaces the resource.
Read-Only
id(String) The resource's id.status(String)activeorsuspended.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_iam_user.ci <iam-user-id>Generated from the provider's schema.
Related