File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
examples/iam-group-with-policies
modules/iam-group-with-policies Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ No inputs.
51
51
52
52
| Name | Description |
53
53
| ------| -------------|
54
+ | <a name =" output_group_arn " ></a > [ group\_ arn] ( #output\_ group\_ arn ) | IAM group arn |
54
55
| <a name =" output_group_name " ></a > [ group\_ name] ( #output\_ group\_ name ) | IAM group name |
55
56
| <a name =" output_group_users " ></a > [ group\_ users] ( #output\_ group\_ users ) | List of IAM users in IAM group |
56
57
| <a name =" output_iam_account_id " ></a > [ iam\_ account\_ id] ( #output\_ iam\_ account\_ id ) | IAM AWS account id |
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ output "iam_account_id" {
3
3
value = module. iam_group_superadmins . aws_account_id
4
4
}
5
5
6
+ output "group_arn" {
7
+ description = " IAM group arn"
8
+ value = module. iam_group_superadmins . group_arn
9
+ }
10
+
6
11
output "group_users" {
7
12
description = " List of IAM users in IAM group"
8
13
value = module. iam_group_superadmins . group_users
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ No modules.
54
54
| Name | Description |
55
55
| ------| -------------|
56
56
| <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 |
57
58
| <a name =" output_group_name " ></a > [ group\_ name] ( #output\_ group\_ name ) | IAM group name |
58
59
| <a name =" output_group_users " ></a > [ group\_ users] ( #output\_ group\_ users ) | List of IAM users in IAM group |
59
60
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ output "aws_account_id" {
3
3
value = local. aws_account_id
4
4
}
5
5
6
+ output "group_arn" {
7
+ description = " IAM group arn"
8
+ value = element (concat (aws_iam_group. this . * . arn , [" " ]), 0 )
9
+ }
10
+
6
11
output "group_users" {
7
12
description = " List of IAM users in IAM group"
8
13
value = flatten (aws_iam_group_membership. this . * . users )
You can’t perform that action at this time.
0 commit comments