Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 1.43 KB

ad_group_membership.md

File metadata and controls

81 lines (60 loc) · 1.43 KB

ad_group_membership

back

Index

Terraform

terraform {
  required_providers {
    ad = ">= 0.4.1"
  }
}

top

Example Usage

module "ad_group_membership" {
  source = "./modules/ad/r/ad_group_membership"

  # group_id - (required) is a type of string
  group_id = null
  # group_members - (required) is a type of set of string
  group_members = []
}

top

Variables

variable "group_id" {
  description = "(required) - The ID of the group. This can be a GUID, a SID, a Distinguished Name, or the SAM Account Name of the group."
  type        = string
}

variable "group_members" {
  description = "(required) - A list of member AD Principals. Each principal can be identified by its GUID, SID, Distinguished Name, or SAM Account Name. Only one is required"
  type        = set(string)
}

top

Resource

resource "ad_group_membership" "this" {
  # group_id - (required) is a type of string
  group_id = var.group_id
  # group_members - (required) is a type of set of string
  group_members = var.group_members
}

top

Outputs

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

output "this" {
  value = ad_group_membership.this
}

top