Skip to content

Commit

Permalink
Add log group name output
Browse files Browse the repository at this point in the history
  • Loading branch information
snemetz committed Feb 19, 2019
1 parent b1c0326 commit 84248c7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ This software is released under the MIT License (see `LICENSE`).
| lb\_dns\_aliases | List of DNS aliases add for ALB |
| lb\_dns\_name | FQDN of ALB provisioned for service (if present) |
| lb\_zone\_id | Route 53 zone ID of ALB provisioned for service (if present) |
| log\_group\_name | Cloudwatch log group name for service |
| service\_arn | ECS service ARN |
| service\_iam\_role\_arn | ARN of the IAM Role for the ECS Service |
| service\_iam\_role\_name | Name of the IAM Role for the ECS Task |
Expand Down
1 change: 1 addition & 0 deletions examples/no_lb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Note that this example may create resources which cost money. Run `terraform des
|------|-------------|
| cluster\_arn | ECS cluster ARN |
| container\_json | |
| log\_group\_name | Cloudwatch log group name for service |
| service\_arn | ECS service ARN |
| service\_iam\_role\_arn | ARN of the IAM Role for the ECS Service |
| service\_iam\_role\_name | Name of the IAM Role for the ECS Task |
Expand Down
5 changes: 5 additions & 0 deletions examples/no_lb/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "log_group_name" {
description = "Cloudwatch log group name for service"
value = "${module.no_lb.log_group_name}"
}

output "task_iam_role_arn" {
description = "ARN of the IAM Role for the ECS Task"
value = "${module.no_lb.task_iam_role_arn}"
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ output "lb_zone_id" {
value = "${module.lb.zone_id}"
}

output "log_group_name" {
description = "Cloudwatch log group name for service"
value = "${local.log_group_name}"
}

output "task_iam_role_arn" {
description = "ARN of the IAM Role for the ECS Task"
value = "${element(concat(aws_iam_role.task.*.arn, list("")), 0)}"
Expand Down
Binary file modified resource-plan-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84248c7

Please sign in to comment.