openstack_identity_user_v3

Manages a V3 User resource within OpenStack Keystone.

Example Usage

resource "openstack_identity_project_v3" "project_1" {
  name = "project_1"
}

resource "openstack_identity_user_v3" "user_1" {
  default_project_id = openstack_identity_project_v3.project_1.id
  name               = "user_1"
  description        = "A user"

  password = "password123"

  ignore_change_password_upon_first_use = true

  multi_factor_auth_enabled = true

  multi_factor_auth_rule {
    rule = ["password", "totp"]
  }

  multi_factor_auth_rule {
    rule = ["password"]
  }

  extra = {
    email = "user_1@foobar.com"
  }
}

Argument Reference

The following arguments are supported:

The multi_factor_auth_rule block supports:

Attributes Reference

The following attributes are exported:

Import

Users can be imported using the id, e.g.

$ terraform import openstack_identity_user_v3.user_1 89c60255-9bd6-460c-822a-e2b959ede9d2