vault_mfa_okta

Provides a resource to manage Okta MFA.

Note this feature is available only with Vault Enterprise.

Example Usage

resource "vault_auth_backend" "userpass" {
  type = "userpass"
  path = "userpass"
}

resource "vault_mfa_okta" "my_okta" {
  name            = "my_okta"
  mount_accessor  = vault_auth_backend.userpass.accessor
  username_format = "user@example.com"
  org_name        = "hashicorp"
  api_token       = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}

Argument Reference

The following arguments are supported:

Attributes Reference

No additional attributes are exported by this resource.

Import

Mounts can be imported using the path, e.g.

$ terraform import vault_mfa_okta.my_okta my_okta