Skip to content

Commit

Permalink
feat: Add new output with state machine name (#63)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
  • Loading branch information
gdowmont and antonbabenko committed Mar 22, 2024
1 parent eec8256 commit f421ef6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ No modules.
| <a name="output_state_machine_arn"></a> [state\_machine\_arn](#output\_state\_machine\_arn) | The ARN of the Step Function |
| <a name="output_state_machine_creation_date"></a> [state\_machine\_creation\_date](#output\_state\_machine\_creation\_date) | The date the Step Function was created |
| <a name="output_state_machine_id"></a> [state\_machine\_id](#output\_state\_machine\_id) | The ARN of the Step Function |
| <a name="output_state_machine_name"></a> [state\_machine\_name](#output\_state\_machine\_name) | The Name of the Step Function |
| <a name="output_state_machine_status"></a> [state\_machine\_status](#output\_state\_machine\_status) | The current status of the Step Function |
| <a name="output_state_machine_version_arn"></a> [state\_machine\_version\_arn](#output\_state\_machine\_version\_arn) | The ARN of state machine version |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ output "state_machine_arn" {
value = try(aws_sfn_state_machine.this[0].arn, "")
}

output "state_machine_name" {
description = "The Name of the Step Function"
value = try(aws_sfn_state_machine.this[0].name, "")
}

output "state_machine_creation_date" {
description = "The date the Step Function was created"
value = try(aws_sfn_state_machine.this[0].creation_date, "")
Expand Down

0 comments on commit f421ef6

Please sign in to comment.