Skip to content

Commit 3a290f5

Browse files
authored
feat: Shorten outputs (removing this_) (#12)
1 parent 92913c1 commit 3a290f5

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
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

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ No modules.
207207

208208
| Name | Description |
209209
|------|-------------|
210-
| <a name="output_this_role_arn"></a> [this\_role\_arn](#output\_this\_role\_arn) | The ARN of the IAM role created for the Step Function |
211-
| <a name="output_this_role_name"></a> [this\_role\_name](#output\_this\_role\_name) | The name of the IAM role created for the Step Function |
212-
| <a name="output_this_state_machine_arn"></a> [this\_state\_machine\_arn](#output\_this\_state\_machine\_arn) | The ARN of the Step Function |
213-
| <a name="output_this_state_machine_creation_date"></a> [this\_state\_machine\_creation\_date](#output\_this\_state\_machine\_creation\_date) | The date the Step Function was created |
214-
| <a name="output_this_state_machine_id"></a> [this\_state\_machine\_id](#output\_this\_state\_machine\_id) | The ARN of the Step Function |
215-
| <a name="output_this_state_machine_status"></a> [this\_state\_machine\_status](#output\_this\_state\_machine\_status) | The current status of the Step Function |
210+
| <a name="output_role_arn"></a> [role\_arn](#output\_role\_arn) | The ARN of the IAM role created for the Step Function |
211+
| <a name="output_role_name"></a> [role\_name](#output\_role\_name) | The name of the IAM role created for the Step Function |
212+
| <a name="output_state_machine_arn"></a> [state\_machine\_arn](#output\_state\_machine\_arn) | The ARN of the Step Function |
213+
| <a name="output_state_machine_creation_date"></a> [state\_machine\_creation\_date](#output\_state\_machine\_creation\_date) | The date the Step Function was created |
214+
| <a name="output_state_machine_id"></a> [state\_machine\_id](#output\_state\_machine\_id) | The ARN of the Step Function |
215+
| <a name="output_state_machine_status"></a> [state\_machine\_status](#output\_state\_machine\_status) | The current status of the Step Function |
216216
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
217217

218218
## Authors

examples/complete/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ No inputs.
5757

5858
| Name | Description |
5959
|------|-------------|
60-
| <a name="output_this_role_arn"></a> [this\_role\_arn](#output\_this\_role\_arn) | The ARN of the IAM role created for the State Machine |
61-
| <a name="output_this_role_name"></a> [this\_role\_name](#output\_this\_role\_name) | The name of the IAM role created for the State Machine |
62-
| <a name="output_this_state_machine_arn"></a> [this\_state\_machine\_arn](#output\_this\_state\_machine\_arn) | The ARN of the State Machine |
63-
| <a name="output_this_state_machine_creation_date"></a> [this\_state\_machine\_creation\_date](#output\_this\_state\_machine\_creation\_date) | The date the State Machine was created |
64-
| <a name="output_this_state_machine_id"></a> [this\_state\_machine\_id](#output\_this\_state\_machine\_id) | The ARN of the State Machine |
65-
| <a name="output_this_state_machine_status"></a> [this\_state\_machine\_status](#output\_this\_state\_machine\_status) | The current status of the State Machine |
60+
| <a name="output_role_arn"></a> [role\_arn](#output\_role\_arn) | The ARN of the IAM role created for the State Machine |
61+
| <a name="output_role_name"></a> [role\_name](#output\_role\_name) | The name of the IAM role created for the State Machine |
62+
| <a name="output_state_machine_arn"></a> [state\_machine\_arn](#output\_state\_machine\_arn) | The ARN of the State Machine |
63+
| <a name="output_state_machine_creation_date"></a> [state\_machine\_creation\_date](#output\_state\_machine\_creation\_date) | The date the State Machine was created |
64+
| <a name="output_state_machine_id"></a> [state\_machine\_id](#output\_state\_machine\_id) | The ARN of the State Machine |
65+
| <a name="output_state_machine_status"></a> [state\_machine\_status](#output\_state\_machine\_status) | The current status of the State Machine |
6666
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/complete/outputs.tf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
# State Machine
2-
output "this_state_machine_id" {
2+
output "state_machine_id" {
33
description = "The ARN of the State Machine"
4-
value = module.step_function.this_state_machine_id
4+
value = module.step_function.state_machine_id
55
}
66

7-
output "this_state_machine_arn" {
7+
output "state_machine_arn" {
88
description = "The ARN of the State Machine"
9-
value = module.step_function.this_state_machine_arn
9+
value = module.step_function.state_machine_arn
1010
}
1111

12-
output "this_state_machine_creation_date" {
12+
output "state_machine_creation_date" {
1313
description = "The date the State Machine was created"
14-
value = module.step_function.this_state_machine_creation_date
14+
value = module.step_function.state_machine_creation_date
1515
}
1616

17-
output "this_state_machine_status" {
17+
output "state_machine_status" {
1818
description = "The current status of the State Machine"
19-
value = module.step_function.this_state_machine_status
19+
value = module.step_function.state_machine_status
2020
}
2121

2222
# IAM Role
23-
output "this_role_arn" {
23+
output "role_arn" {
2424
description = "The ARN of the IAM role created for the State Machine"
25-
value = module.step_function.this_role_arn
25+
value = module.step_function.role_arn
2626
}
2727

28-
output "this_role_name" {
28+
output "role_name" {
2929
description = "The name of the IAM role created for the State Machine"
30-
value = module.step_function.this_role_name
30+
value = module.step_function.role_name
3131
}

outputs.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
# Step Function
2-
output "this_state_machine_id" {
2+
output "state_machine_id" {
33
description = "The ARN of the Step Function"
44
value = element(concat(aws_sfn_state_machine.this.*.id, [""]), 0)
55
}
66

7-
output "this_state_machine_arn" {
7+
output "state_machine_arn" {
88
description = "The ARN of the Step Function"
99
value = element(concat(aws_sfn_state_machine.this.*.arn, [""]), 0)
1010
}
1111

12-
output "this_state_machine_creation_date" {
12+
output "state_machine_creation_date" {
1313
description = "The date the Step Function was created"
1414
value = element(concat(aws_sfn_state_machine.this.*.creation_date, [""]), 0)
1515
}
1616

17-
output "this_state_machine_status" {
17+
output "state_machine_status" {
1818
description = "The current status of the Step Function"
1919
value = element(concat(aws_sfn_state_machine.this.*.status, [""]), 0)
2020
}
2121

2222
# IAM Role
23-
output "this_role_arn" {
23+
output "role_arn" {
2424
description = "The ARN of the IAM role created for the Step Function"
2525
value = element(concat(aws_iam_role.this.*.arn, [""]), 0)
2626
}
2727

28-
output "this_role_name" {
28+
output "role_name" {
2929
description = "The name of the IAM role created for the Step Function"
3030
value = element(concat(aws_iam_role.this.*.name, [""]), 0)
3131
}

0 commit comments

Comments
 (0)