From e51953dcb683f10bfe1a6db97d6ca59839996a9e Mon Sep 17 00:00:00 2001 From: Dominique Dumont Date: Thu, 1 Dec 2022 11:17:31 +0100 Subject: [PATCH 1/3] feat: add cloudwatch log group name and arn in output --- outputs.tf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/outputs.tf b/outputs.tf index 528bea9..30da4b9 100644 --- a/outputs.tf +++ b/outputs.tf @@ -29,3 +29,14 @@ output "role_name" { description = "The name of the IAM role created for the Step Function" value = try(aws_iam_role.this[0].name, "") } + +# CloudWatch +output "cloudwatch_log_group_arn" { + description = "The ARN of the CloudWatch log group created for the Step Function" + value = try(aws_cloudwatch_log_group.sfn[0].arn, "") +} + +output "cloudwatch_log_group_name" { + description = "The name of the CloudWatch log group created for the Step Function" + value = try(aws_cloudwatch_log_group.sfn[0].name, "") +} From 80993a33c7a34d056a515127002a7f11ea61d897 Mon Sep 17 00:00:00 2001 From: Dominique Dumont Date: Thu, 1 Dec 2022 11:18:01 +0100 Subject: [PATCH 2/3] test: add cloudwatch log group name and arn in example output --- examples/complete/outputs.tf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/complete/outputs.tf b/examples/complete/outputs.tf index 6591035..f72a42d 100644 --- a/examples/complete/outputs.tf +++ b/examples/complete/outputs.tf @@ -29,3 +29,14 @@ output "role_name" { description = "The name of the IAM role created for the State Machine" value = module.step_function.role_name } + +# CloudWatch +output "cloudwatch_log_group_arn" { + description = "The ARN of the CloudWatch log group created for the Step Function" + value = module.step_function.cloudwatch_log_group_arn +} + +output "cloudwatch_log_group_name" { + description = "The name of the CloudWatch log group created for the Step Function" + value = module.step_function.cloudwatch_log_group_name +} From 1337c858c6893d9fdb1f115d8d7fc3d441359720 Mon Sep 17 00:00:00 2001 From: Dominique Dumont Date: Thu, 1 Dec 2022 11:38:30 +0100 Subject: [PATCH 3/3] docs: add cloudwatch log group name and arn --- README.md | 2 ++ examples/complete/README.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index cac8fe3..4ca8c4f 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,8 @@ No modules. | Name | Description | |------|-------------| +| [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | The ARN of the CloudWatch log group created for the Step Function | +| [cloudwatch\_log\_group\_name](#output\_cloudwatch\_log\_group\_name) | The name of the CloudWatch log group created for the Step Function | | [role\_arn](#output\_role\_arn) | The ARN of the IAM role created for the Step Function | | [role\_name](#output\_role\_name) | The name of the IAM role created for the Step Function | | [state\_machine\_arn](#output\_state\_machine\_arn) | The ARN of the Step Function | diff --git a/examples/complete/README.md b/examples/complete/README.md index e67b179..cbe0108 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -61,6 +61,8 @@ No inputs. | Name | Description | |------|-------------| +| [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | The ARN of the CloudWatch log group created for the Step Function | +| [cloudwatch\_log\_group\_name](#output\_cloudwatch\_log\_group\_name) | The name of the CloudWatch log group created for the Step Function | | [role\_arn](#output\_role\_arn) | The ARN of the IAM role created for the State Machine | | [role\_name](#output\_role\_name) | The name of the IAM role created for the State Machine | | [state\_machine\_arn](#output\_state\_machine\_arn) | The ARN of the State Machine |