Skip to content

Latest commit

 

History

History
118 lines (91 loc) · 2 KB

aws_identitystore_user.md

File metadata and controls

118 lines (91 loc) · 2 KB

aws_identitystore_user

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_identitystore_user" {
  source = "./modules/aws/d/aws_identitystore_user"

  # identity_store_id - (required) is a type of string
  identity_store_id = null
  # user_id - (optional) is a type of string
  user_id = null

  filter = [{
    attribute_path  = null
    attribute_value = null
  }]
}

top

Variables

variable "identity_store_id" {
  description = "(required)"
  type        = string
}

variable "user_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "filter" {
  description = "nested block: NestingSet, min items: 1, max items: 0"
  type = set(object(
    {
      attribute_path  = string
      attribute_value = string
    }
  ))
}

top

Datasource

data "aws_identitystore_user" "this" {
  # identity_store_id - (required) is a type of string
  identity_store_id = var.identity_store_id
  # user_id - (optional) is a type of string
  user_id = var.user_id

  dynamic "filter" {
    for_each = var.filter
    content {
      # attribute_path - (required) is a type of string
      attribute_path = filter.value["attribute_path"]
      # attribute_value - (required) is a type of string
      attribute_value = filter.value["attribute_value"]
    }
  }

}

top

Outputs

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

output "user_id" {
  description = "returns a string"
  value       = data.aws_identitystore_user.this.user_id
}

output "user_name" {
  description = "returns a string"
  value       = data.aws_identitystore_user.this.user_name
}

output "this" {
  value = aws_identitystore_user.this
}

top