Skip to content

Commit 72c3b05

Browse files
authored
feat: Shorten outputs (removing this_) (#150)
1 parent 7b9ddc8 commit 72c3b05

File tree

34 files changed

+190
-190
lines changed

34 files changed

+190
-190
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: git://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.48.0
3+
rev: v1.50.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

examples/iam-account/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ No inputs.
4444

4545
| Name | Description |
4646
|------|-------------|
47-
| <a name="output_this_caller_identity_account_id"></a> [this\_caller\_identity\_account\_id](#output\_this\_caller\_identity\_account\_id) | The ID of the AWS account |
48-
| <a name="output_this_iam_account_password_policy_expire_passwords"></a> [this\_iam\_account\_password\_policy\_expire\_passwords](#output\_this\_iam\_account\_password\_policy\_expire\_passwords) | Indicates whether passwords in the account expire. Returns true if max\_password\_age contains a value greater than 0. Returns false if it is 0 or not present. |
47+
| <a name="output_caller_identity_account_id"></a> [caller\_identity\_account\_id](#output\_caller\_identity\_account\_id) | The ID of the AWS account |
48+
| <a name="output_iam_account_password_policy_expire_passwords"></a> [iam\_account\_password\_policy\_expire\_passwords](#output\_iam\_account\_password\_policy\_expire\_passwords) | Indicates whether passwords in the account expire. Returns true if max\_password\_age contains a value greater than 0. Returns false if it is 0 or not present. |
4949
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/iam-account/outputs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
output "this_caller_identity_account_id" {
1+
output "caller_identity_account_id" {
22
description = "The ID of the AWS account"
3-
value = module.iam_account.this_caller_identity_account_id
3+
value = module.iam_account.caller_identity_account_id
44
}
55

6-
output "this_iam_account_password_policy_expire_passwords" {
6+
output "iam_account_password_policy_expire_passwords" {
77
description = "Indicates whether passwords in the account expire. Returns true if max_password_age contains a value greater than 0. Returns false if it is 0 or not present."
8-
value = module.iam_account.this_iam_account_password_policy_expire_passwords
8+
value = module.iam_account.iam_account_password_policy_expire_passwords
99
}

examples/iam-assumable-role-with-oidc/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ No inputs.
4444

4545
| Name | Description |
4646
|------|-------------|
47-
| <a name="output_this_iam_role_arn"></a> [this\_iam\_role\_arn](#output\_this\_iam\_role\_arn) | ARN of IAM role |
48-
| <a name="output_this_iam_role_name"></a> [this\_iam\_role\_name](#output\_this\_iam\_role\_name) | Name of IAM role |
49-
| <a name="output_this_iam_role_path"></a> [this\_iam\_role\_path](#output\_this\_iam\_role\_path) | Path of IAM role |
50-
| <a name="output_this_iam_role_unique_id"></a> [this\_iam\_role\_unique\_id](#output\_this\_iam\_role\_unique\_id) | Unique ID of IAM role |
47+
| <a name="output_iam_role_arn"></a> [iam\_role\_arn](#output\_iam\_role\_arn) | ARN of IAM role |
48+
| <a name="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | Name of IAM role |
49+
| <a name="output_iam_role_path"></a> [iam\_role\_path](#output\_iam\_role\_path) | Path of IAM role |
50+
| <a name="output_iam_role_unique_id"></a> [iam\_role\_unique\_id](#output\_iam\_role\_unique\_id) | Unique ID of IAM role |
5151
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
output "this_iam_role_arn" {
1+
output "iam_role_arn" {
22
description = "ARN of IAM role"
3-
value = module.iam_assumable_role_admin.this_iam_role_arn
3+
value = module.iam_assumable_role_admin.iam_role_arn
44
}
55

6-
output "this_iam_role_name" {
6+
output "iam_role_name" {
77
description = "Name of IAM role"
8-
value = module.iam_assumable_role_admin.this_iam_role_name
8+
value = module.iam_assumable_role_admin.iam_role_name
99
}
1010

11-
output "this_iam_role_path" {
11+
output "iam_role_path" {
1212
description = "Path of IAM role"
13-
value = module.iam_assumable_role_admin.this_iam_role_path
13+
value = module.iam_assumable_role_admin.iam_role_path
1414
}
1515

16-
output "this_iam_role_unique_id" {
16+
output "iam_role_unique_id" {
1717
description = "Unique ID of IAM role"
18-
value = module.iam_assumable_role_admin.this_iam_role_unique_id
19-
}
18+
value = module.iam_assumable_role_admin.iam_role_unique_id
19+
}

examples/iam-assumable-role-with-saml/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ No inputs.
4949

5050
| Name | Description |
5151
|------|-------------|
52-
| <a name="output_this_iam_role_arn"></a> [this\_iam\_role\_arn](#output\_this\_iam\_role\_arn) | ARN of IAM role |
53-
| <a name="output_this_iam_role_name"></a> [this\_iam\_role\_name](#output\_this\_iam\_role\_name) | Name of IAM role |
54-
| <a name="output_this_iam_role_path"></a> [this\_iam\_role\_path](#output\_this\_iam\_role\_path) | Path of IAM role |
55-
| <a name="output_this_iam_role_unique_id"></a> [this\_iam\_role\_unique\_id](#output\_this\_iam\_role\_unique\_id) | Unique ID of IAM role |
52+
| <a name="output_iam_role_arn"></a> [iam\_role\_arn](#output\_iam\_role\_arn) | ARN of IAM role |
53+
| <a name="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | Name of IAM role |
54+
| <a name="output_iam_role_path"></a> [iam\_role\_path](#output\_iam\_role\_path) | Path of IAM role |
55+
| <a name="output_iam_role_unique_id"></a> [iam\_role\_unique\_id](#output\_iam\_role\_unique\_id) | Unique ID of IAM role |
5656
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
output "this_iam_role_arn" {
1+
output "iam_role_arn" {
22
description = "ARN of IAM role"
3-
value = module.iam_assumable_role_admin.this_iam_role_arn
3+
value = module.iam_assumable_role_admin.iam_role_arn
44
}
55

6-
output "this_iam_role_name" {
6+
output "iam_role_name" {
77
description = "Name of IAM role"
8-
value = module.iam_assumable_role_admin.this_iam_role_name
8+
value = module.iam_assumable_role_admin.iam_role_name
99
}
1010

11-
output "this_iam_role_path" {
11+
output "iam_role_path" {
1212
description = "Path of IAM role"
13-
value = module.iam_assumable_role_admin.this_iam_role_path
13+
value = module.iam_assumable_role_admin.iam_role_path
1414
}
1515

16-
output "this_iam_role_unique_id" {
16+
output "iam_role_unique_id" {
1717
description = "Unique ID of IAM role"
18-
value = module.iam_assumable_role_admin.this_iam_role_unique_id
18+
value = module.iam_assumable_role_admin.iam_role_unique_id
1919
}

examples/iam-assumable-role/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ No inputs.
4949

5050
| Name | Description |
5151
|------|-------------|
52+
| <a name="output_iam_role_arn"></a> [iam\_role\_arn](#output\_iam\_role\_arn) | ARN of IAM role |
53+
| <a name="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | Name of IAM role |
54+
| <a name="output_iam_role_path"></a> [iam\_role\_path](#output\_iam\_role\_path) | Path of IAM role |
55+
| <a name="output_iam_role_unique_id"></a> [iam\_role\_unique\_id](#output\_iam\_role\_unique\_id) | Unique ID of IAM role |
5256
| <a name="output_role_requires_mfa"></a> [role\_requires\_mfa](#output\_role\_requires\_mfa) | Whether admin IAM role requires MFA |
53-
| <a name="output_this_iam_role_arn"></a> [this\_iam\_role\_arn](#output\_this\_iam\_role\_arn) | ARN of IAM role |
54-
| <a name="output_this_iam_role_name"></a> [this\_iam\_role\_name](#output\_this\_iam\_role\_name) | Name of IAM role |
55-
| <a name="output_this_iam_role_path"></a> [this\_iam\_role\_path](#output\_this\_iam\_role\_path) | Path of IAM role |
56-
| <a name="output_this_iam_role_unique_id"></a> [this\_iam\_role\_unique\_id](#output\_this\_iam\_role\_unique\_id) | Unique ID of IAM role |
5757
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/iam-assumable-role/outputs.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
output "this_iam_role_arn" {
1+
output "iam_role_arn" {
22
description = "ARN of IAM role"
3-
value = module.iam_assumable_role_admin.this_iam_role_arn
3+
value = module.iam_assumable_role_admin.iam_role_arn
44
}
55

6-
output "this_iam_role_name" {
6+
output "iam_role_name" {
77
description = "Name of IAM role"
8-
value = module.iam_assumable_role_admin.this_iam_role_name
8+
value = module.iam_assumable_role_admin.iam_role_name
99
}
1010

11-
output "this_iam_role_path" {
11+
output "iam_role_path" {
1212
description = "Path of IAM role"
13-
value = module.iam_assumable_role_admin.this_iam_role_path
13+
value = module.iam_assumable_role_admin.iam_role_path
1414
}
1515

16-
output "this_iam_role_unique_id" {
16+
output "iam_role_unique_id" {
1717
description = "Unique ID of IAM role"
18-
value = module.iam_assumable_role_admin.this_iam_role_unique_id
18+
value = module.iam_assumable_role_admin.iam_role_unique_id
1919
}
2020

2121
output "role_requires_mfa" {

examples/iam-group-complete/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ No inputs.
4949

5050
| Name | Description |
5151
|------|-------------|
52-
| <a name="output_this_assumable_roles"></a> [this\_assumable\_roles](#output\_this\_assumable\_roles) | List of ARNs of IAM roles which members of IAM group can assume |
53-
| <a name="output_this_group_users"></a> [this\_group\_users](#output\_this\_group\_users) | List of IAM users in IAM group |
54-
| <a name="output_this_policy_arn"></a> [this\_policy\_arn](#output\_this\_policy\_arn) | Assume role policy ARN for IAM group |
52+
| <a name="output_assumable_roles"></a> [assumable\_roles](#output\_assumable\_roles) | List of ARNs of IAM roles which members of IAM group can assume |
53+
| <a name="output_group_users"></a> [group\_users](#output\_group\_users) | List of IAM users in IAM group |
54+
| <a name="output_policy_arn"></a> [policy\_arn](#output\_policy\_arn) | Assume role policy ARN for IAM group |
5555
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

0 commit comments

Comments
 (0)