Data Source: aws_identitystore_group

Use this data source to get an Identity Store Group.

Example Usage

data "aws_ssoadmin_instances" "example" {}

data "aws_identitystore_group" "example" {
  identity_store_id = tolist(data.aws_ssoadmin_instances.example.identity_store_ids)[0]

  alternate_identifier {
    unique_attribute {
      attribute_path  = "DisplayName"
      attribute_value = "ExampleGroup"
    }
  }
}

output "group_id" {
  value = data.aws_identitystore_group.example.group_id
}

Argument Reference

The following arguments are required:

The following arguments are optional:

alternate_identifier Configuration Block

The alternate_identifier configuration block supports the following arguments:

external_id Configuration Block

The external_id configuration block supports the following arguments:

filter Configuration Block

The following arguments are supported by the filter configuration block:

unique_attribute Configuration Block

The unique_attribute configuration block supports the following arguments:

Attribute Reference

This data source exports the following attributes in addition to the arguments above: