Skip to content

Commit 56f0d00

Browse files
mary-sippleMary SippleRoseSecurity
authored
Add output for the Cloudwatch log group name (#50)
* Add output for the Cloudwatch log group name * Drop log_group_name local variable * Update docs --------- Co-authored-by: Mary Sipple <mary.sipple@trove.co> Co-authored-by: RoseSecurity <72598486+RoseSecurity@users.noreply.github.com>
1 parent b922919 commit 56f0d00

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ Available targets:
178178
| <a name="output_execution_arn"></a> [execution\_arn](#output\_execution\_arn) | The execution ARN part to be used in lambda\_permission's source\_arn when allowing API Gateway to invoke a Lambda <br/> function, e.g., arn:aws:execute-api:eu-west-2:123456789012:z4675bid1j, which can be concatenated with allowed stage, <br/> method and resource path.The ARN of the Lambda function that will be executed. |
179179
| <a name="output_id"></a> [id](#output\_id) | The ID of the REST API |
180180
| <a name="output_invoke_url"></a> [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API |
181+
| <a name="output_log_group_name"></a> [log\_group\_name](#output\_log\_group\_name) | The ARN of the Cloudwatch log group |
181182
| <a name="output_root_resource_id"></a> [root\_resource\_id](#output\_root\_resource\_id) | The resource ID of the REST API's root |
182183
| <a name="output_stage_arn"></a> [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage |
183184
<!-- markdownlint-restore -->

docs/terraform.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
| <a name="output_execution_arn"></a> [execution\_arn](#output\_execution\_arn) | The execution ARN part to be used in lambda\_permission's source\_arn when allowing API Gateway to invoke a Lambda <br/> function, e.g., arn:aws:execute-api:eu-west-2:123456789012:z4675bid1j, which can be concatenated with allowed stage, <br/> method and resource path.The ARN of the Lambda function that will be executed. |
7878
| <a name="output_id"></a> [id](#output\_id) | The ID of the REST API |
7979
| <a name="output_invoke_url"></a> [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API |
80+
| <a name="output_log_group_name"></a> [log\_group\_name](#output\_log\_group\_name) | The ARN of the Cloudwatch log group |
8081
| <a name="output_root_resource_id"></a> [root\_resource\_id](#output\_root\_resource\_id) | The resource ID of the REST API's root |
8182
| <a name="output_stage_arn"></a> [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage |
8283
<!-- markdownlint-restore -->

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ output "stage_arn" {
3636
description = "The ARN of the gateway stage"
3737
value = module.this.enabled ? aws_api_gateway_stage.this[0].arn : null
3838
}
39+
40+
output "log_group_name" {
41+
description = "The ARN of the Cloudwatch log group"
42+
value = local.create_log_group ? module.cloudwatch_log_group.log_group_name : null
43+
}

0 commit comments

Comments
 (0)