Skip to content

Latest commit

 

History

History
101 lines (78 loc) · 1.81 KB

vault_okta_auth_backend_user.md

File metadata and controls

101 lines (78 loc) · 1.81 KB

vault_okta_auth_backend_user

back

Index

Terraform

terraform {
  required_providers {
    vault = ">= 2.19.0"
  }
}

top

Example Usage

module "vault_okta_auth_backend_user" {
  source = "./modules/vault/r/vault_okta_auth_backend_user"

  # groups - (optional) is a type of set of string
  groups = []
  # path - (required) is a type of string
  path = null
  # policies - (optional) is a type of set of string
  policies = []
  # username - (required) is a type of string
  username = null
}

top

Variables

variable "groups" {
  description = "(optional) - Groups within the Okta auth backend to associate with this user"
  type        = set(string)
  default     = null
}

variable "path" {
  description = "(required) - Path to the Okta auth backend"
  type        = string
}

variable "policies" {
  description = "(optional) - Policies to associate with this user"
  type        = set(string)
  default     = null
}

variable "username" {
  description = "(required) - Name of the user within Okta"
  type        = string
}

top

Resource

resource "vault_okta_auth_backend_user" "this" {
  # groups - (optional) is a type of set of string
  groups = var.groups
  # path - (required) is a type of string
  path = var.path
  # policies - (optional) is a type of set of string
  policies = var.policies
  # username - (required) is a type of string
  username = var.username
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = vault_okta_auth_backend_user.this.id
}

output "this" {
  value = vault_okta_auth_backend_user.this
}

top