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 | 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 +} 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, "") +}