Skip to content

Latest commit

 

History

History
148 lines (120 loc) · 3.38 KB

vault_identity_group.md

File metadata and controls

148 lines (120 loc) · 3.38 KB

vault_identity_group

back

Index

Terraform

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

top

Example Usage

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

  # external_member_entity_ids - (optional) is a type of bool
  external_member_entity_ids = null
  # external_policies - (optional) is a type of bool
  external_policies = null
  # member_entity_ids - (optional) is a type of set of string
  member_entity_ids = []
  # member_group_ids - (optional) is a type of set of string
  member_group_ids = []
  # metadata - (optional) is a type of map of string
  metadata = {}
  # name - (optional) is a type of string
  name = null
  # policies - (optional) is a type of set of string
  policies = []
  # type - (optional) is a type of string
  type = null
}

top

Variables

variable "external_member_entity_ids" {
  description = "(optional) - Manage member entities externally through `vault_identity_group_policies_member_entity_ids`"
  type        = bool
  default     = null
}

variable "external_policies" {
  description = "(optional) - Manage policies externally through `vault_identity_group_policies`, allows using group ID in assigned policies."
  type        = bool
  default     = null
}

variable "member_entity_ids" {
  description = "(optional) - Entity IDs to be assigned as group members."
  type        = set(string)
  default     = null
}

variable "member_group_ids" {
  description = "(optional) - Group IDs to be assigned as group members."
  type        = set(string)
  default     = null
}

variable "metadata" {
  description = "(optional) - Metadata to be associated with the group."
  type        = map(string)
  default     = null
}

variable "name" {
  description = "(optional) - Name of the group."
  type        = string
  default     = null
}

variable "policies" {
  description = "(optional) - Policies to be tied to the group."
  type        = set(string)
  default     = null
}

variable "type" {
  description = "(optional) - Type of the group, internal or external. Defaults to internal."
  type        = string
  default     = null
}

top

Resource

resource "vault_identity_group" "this" {
  # external_member_entity_ids - (optional) is a type of bool
  external_member_entity_ids = var.external_member_entity_ids
  # external_policies - (optional) is a type of bool
  external_policies = var.external_policies
  # member_entity_ids - (optional) is a type of set of string
  member_entity_ids = var.member_entity_ids
  # member_group_ids - (optional) is a type of set of string
  member_group_ids = var.member_group_ids
  # metadata - (optional) is a type of map of string
  metadata = var.metadata
  # name - (optional) is a type of string
  name = var.name
  # policies - (optional) is a type of set of string
  policies = var.policies
  # type - (optional) is a type of string
  type = var.type
}

top

Outputs

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

output "name" {
  description = "returns a string"
  value       = vault_identity_group.this.name
}

output "this" {
  value = vault_identity_group.this
}

top