Skip to content

Commit 62afe34

Browse files
dod38frDominique Dumont
andauthored
feat: Add output for the CloudWatch log group name and ARN created for the Step Function (#45)
Co-authored-by: Dominique Dumont <[email protected]>
1 parent b6634fb commit 62afe34

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ No modules.
219219

220220
| Name | Description |
221221
|------|-------------|
222+
| <a name="output_cloudwatch_log_group_arn"></a> [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | The ARN of the CloudWatch log group created for the Step Function |
223+
| <a name="output_cloudwatch_log_group_name"></a> [cloudwatch\_log\_group\_name](#output\_cloudwatch\_log\_group\_name) | The name of the CloudWatch log group created for the Step Function |
222224
| <a name="output_role_arn"></a> [role\_arn](#output\_role\_arn) | The ARN of the IAM role created for the Step Function |
223225
| <a name="output_role_name"></a> [role\_name](#output\_role\_name) | The name of the IAM role created for the Step Function |
224226
| <a name="output_state_machine_arn"></a> [state\_machine\_arn](#output\_state\_machine\_arn) | The ARN of the Step Function |

examples/complete/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ No inputs.
6161

6262
| Name | Description |
6363
|------|-------------|
64+
| <a name="output_cloudwatch_log_group_arn"></a> [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | The ARN of the CloudWatch log group created for the Step Function |
65+
| <a name="output_cloudwatch_log_group_name"></a> [cloudwatch\_log\_group\_name](#output\_cloudwatch\_log\_group\_name) | The name of the CloudWatch log group created for the Step Function |
6466
| <a name="output_role_arn"></a> [role\_arn](#output\_role\_arn) | The ARN of the IAM role created for the State Machine |
6567
| <a name="output_role_name"></a> [role\_name](#output\_role\_name) | The name of the IAM role created for the State Machine |
6668
| <a name="output_state_machine_arn"></a> [state\_machine\_arn](#output\_state\_machine\_arn) | The ARN of the State Machine |

examples/complete/outputs.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,14 @@ output "role_name" {
2929
description = "The name of the IAM role created for the State Machine"
3030
value = module.step_function.role_name
3131
}
32+
33+
# CloudWatch
34+
output "cloudwatch_log_group_arn" {
35+
description = "The ARN of the CloudWatch log group created for the Step Function"
36+
value = module.step_function.cloudwatch_log_group_arn
37+
}
38+
39+
output "cloudwatch_log_group_name" {
40+
description = "The name of the CloudWatch log group created for the Step Function"
41+
value = module.step_function.cloudwatch_log_group_name
42+
}

outputs.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,14 @@ output "role_name" {
2929
description = "The name of the IAM role created for the Step Function"
3030
value = try(aws_iam_role.this[0].name, "")
3131
}
32+
33+
# CloudWatch
34+
output "cloudwatch_log_group_arn" {
35+
description = "The ARN of the CloudWatch log group created for the Step Function"
36+
value = try(aws_cloudwatch_log_group.sfn[0].arn, "")
37+
}
38+
39+
output "cloudwatch_log_group_name" {
40+
description = "The name of the CloudWatch log group created for the Step Function"
41+
value = try(aws_cloudwatch_log_group.sfn[0].name, "")
42+
}

0 commit comments

Comments
 (0)