Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output for the Cloudwatch log group name #50

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ locals {
create_rest_api_policy = local.enabled && var.rest_api_policy != null
create_log_group = local.enabled && var.logging_level != "OFF"
log_group_arn = local.create_log_group ? module.cloudwatch_log_group.log_group_arn : null
log_group_name = local.create_log_group ? module.cloudwatch_log_group.log_group_name : null
vpc_link_enabled = local.enabled && length(var.private_link_target_arns) > 0
}

Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ output "stage_arn" {
description = "The ARN of the gateway stage"
value = module.this.enabled ? aws_api_gateway_stage.this[0].arn : null
}

output "log_group_name" {
description = "The ARN of the Cloudwatch log group"
value = local.log_group_name
mary-sipple marked this conversation as resolved.
Show resolved Hide resolved
}