This data source can be used to fetch information about a specific IAM group. By using this data source, you can reference IAM group properties without having to hard code ARNs as input.
data "aws_iam_group" "example" {
group_name = "an_example_group_name"
}
group_name - (Required) The friendly IAM group name to match. arn - The Amazon Resource Name (ARN) specifying the group.
path - The path to the group.
group_id - The stable and unique string identifying the group.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/iam_group.html