sbercloud-terraform / terraform-provider-sbercloud

Terraform SberCloud Provider
https://registry.terraform.io/providers/sbercloud-terraform/sbercloud/latest/docs
Mozilla Public License 2.0
34 stars 21 forks source link

Support login protect for user #296

Closed Tearix closed 3 months ago

Tearix commented 5 months ago

Affected Resource(s)

Output

  # sbercloud_identity_user.xxx will be updated in-place
  ~ resource "sbercloud_identity_user" "xxx" {
        id                                = "XXXXXXXXXXXXXXXXXXXX"
      - login_protect_verification_method = "email" -> null
        name                              = "xxx"
        # (7 unchanged attributes hidden)
    }

Expected Behavior

login_protect_verification_method не меняется или есть возможность указать его в terraform

Actual Behavior

Слетает login_protect_verification_method

Important Factoids

Предположительно после обновления провайдера до 1.12.1

References

0ohmresistor commented 3 months ago

Добрый день! Мы выпустили новую версию провайдера. Возможность указать login_protect_verification_method в terraform работает. Пример:

resource "sbercloud_identity_user" "user_1" {
  name                              = "user_1"
  description                       = "A user 1"
  password                          = "password123!"
  login_protect_verification_method = "sms"
}

Результат:

Terraform will perform the following actions:

  # sbercloud_identity_user.user_1 will be updated in-place
  ~ resource "sbercloud_identity_user" "user_1" {
        id                                = ""
      ~ login_protect_verification_method = "email" -> "sms"
        name                              = "user_1"
        # (8 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.