Skip to content

cloud-labs-infra/terraform-huaweicloud-iam-user

Repository files navigation

IAM User

Requirements

Name Version
terraform ~> 1.7
huaweicloud ~>1.63
random ~>3.5

Providers

Name Version
huaweicloud ~>1.63
random ~>3.5

Modules

No modules.

Resources

Name Type
huaweicloud_identity_access_key.main resource
huaweicloud_identity_group.main resource
huaweicloud_identity_group_membership.main resource
huaweicloud_identity_group_role_assignment.main resource
huaweicloud_identity_user.main resource
random_password.password resource
huaweicloud_identity_role.main data source

Inputs

Name Description Type Default Required
access_type Specifies the access type of the user. Available values are:

* default: support both programmatic and management console access;
* programmatic: only support programmatic access;
* console: only support management console access.
string "programmatic" no
country_code Specifies the country code string null no
description Specifies the description of the user string null no
email Specifies the email address string null no
enabled Specifies whether the user is enabled or disabled bool true no
identity_roles Specifies the name of the identity groups
List of available groups https://support.huaweicloud.com/intl/en-us/usermanual-permissions/iam_01_0001.html
set(string) [] no
name Specifies the name of the user string n/a yes
password IAM User's password parameters
object({
enable = optional(bool, false)
length = optional(number, 20)
special = optional(bool, false)
})
{} no
phone Specifies the mobile number string null no
project_id Specifies the project to assign the role in string "all" no
pwd_reset Specifies whether or not the password should be reset bool false no
secret_file Specifies the file name that can save access key and access secret key string null no

Outputs

Name Description
access_key The access key ID
encrypted_secret The encrypted secret, base64 encoded
id The resource ID in UUID format
password The password of IAM User
secret_key The access secret key