Skip to content

Commit c3a3798

Browse files
authored
feat: Added output group_arn to iam-group-with-policies (#165)
1 parent f5aab59 commit c3a3798

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

examples/iam-group-with-policies/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ No inputs.
5151

5252
| Name | Description |
5353
|------|-------------|
54+
| <a name="output_group_arn"></a> [group\_arn](#output\_group\_arn) | IAM group arn |
5455
| <a name="output_group_name"></a> [group\_name](#output\_group\_name) | IAM group name |
5556
| <a name="output_group_users"></a> [group\_users](#output\_group\_users) | List of IAM users in IAM group |
5657
| <a name="output_iam_account_id"></a> [iam\_account\_id](#output\_iam\_account\_id) | IAM AWS account id |

examples/iam-group-with-policies/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ output "iam_account_id" {
33
value = module.iam_group_superadmins.aws_account_id
44
}
55

6+
output "group_arn" {
7+
description = "IAM group arn"
8+
value = module.iam_group_superadmins.group_arn
9+
}
10+
611
output "group_users" {
712
description = "List of IAM users in IAM group"
813
value = module.iam_group_superadmins.group_users

modules/iam-group-with-policies/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ No modules.
5454
| Name | Description |
5555
|------|-------------|
5656
| <a name="output_aws_account_id"></a> [aws\_account\_id](#output\_aws\_account\_id) | IAM AWS account id |
57+
| <a name="output_group_arn"></a> [group\_arn](#output\_group\_arn) | IAM group arn |
5758
| <a name="output_group_name"></a> [group\_name](#output\_group\_name) | IAM group name |
5859
| <a name="output_group_users"></a> [group\_users](#output\_group\_users) | List of IAM users in IAM group |
5960
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/iam-group-with-policies/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ output "aws_account_id" {
33
value = local.aws_account_id
44
}
55

6+
output "group_arn" {
7+
description = "IAM group arn"
8+
value = element(concat(aws_iam_group.this.*.arn, [""]), 0)
9+
}
10+
611
output "group_users" {
712
description = "List of IAM users in IAM group"
813
value = flatten(aws_iam_group_membership.this.*.users)

0 commit comments

Comments
 (0)