Resource
dcloud_iam_password_policy
The organization's rules for IAM-user console passwords (dcloud_iam_user_login_profile): length, character classes, expiry, lockout, how long one sign-in lasts, and whether IAM users may sign in with a password at all. One per organization: create adopts it, destroy restores the defaults. Import with any id, e.g. password_policy.
Example Usage
resource "dcloud_iam_password_policy" "this" {
min_length = 14
require_symbols = true
max_age_days = 180
lockout_threshold = 5
lockout_minutes = 30
max_session_hours = 8
}Schema
Optional
console_passwords_allowed(Boolean)falseturns IAM-user password sign-in off. Default: true.lockout_minutes(Number) How long a lock lasts, 1 to 1440. Default: 15.lockout_threshold(Number) Wrong passwords in a row before the user is locked, 3 to 20. Default: 5.max_age_days(Number) Days before a password must be changed, 1 to 365; unset: never.max_session_hours(Number) How long one console sign-in lasts at most, 1 to 168. Default: 12.min_length(Number) Shortest password, 8 to 128. Default: 12.require_lowercase(Boolean) Every password has a lowercase letter. Default: true.require_numbers(Boolean) Every password has a number. Default: true.require_symbols(Boolean) Every password has a symbol. Default: false.require_uppercase(Boolean) Every password has an uppercase letter. Default: true.
Read-Only
console_passwords_blocked_by(String) Why IAM users cannot sign in with a password right now (an enforced SSO connection, or turned off), or null.id(String) The resource's id.organization_alias(String) The alias IAM users type at sign-in.sign_in_url(String) The organization's sign-in page for IAM users.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_iam_password_policy.this password_policyGenerated from the provider's schema.
Related