Skip to content

Commit 84248c7

Browse files
committed
Add log group name output
1 parent b1c0326 commit 84248c7

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ This software is released under the MIT License (see `LICENSE`).
124124
| lb\_dns\_aliases | List of DNS aliases add for ALB |
125125
| lb\_dns\_name | FQDN of ALB provisioned for service (if present) |
126126
| lb\_zone\_id | Route 53 zone ID of ALB provisioned for service (if present) |
127+
| log\_group\_name | Cloudwatch log group name for service |
127128
| service\_arn | ECS service ARN |
128129
| service\_iam\_role\_arn | ARN of the IAM Role for the ECS Service |
129130
| service\_iam\_role\_name | Name of the IAM Role for the ECS Task |

examples/no_lb/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Note that this example may create resources which cost money. Run `terraform des
3131
|------|-------------|
3232
| cluster\_arn | ECS cluster ARN |
3333
| container\_json | |
34+
| log\_group\_name | Cloudwatch log group name for service |
3435
| service\_arn | ECS service ARN |
3536
| service\_iam\_role\_arn | ARN of the IAM Role for the ECS Service |
3637
| service\_iam\_role\_name | Name of the IAM Role for the ECS Task |

examples/no_lb/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "log_group_name" {
2+
description = "Cloudwatch log group name for service"
3+
value = "${module.no_lb.log_group_name}"
4+
}
5+
16
output "task_iam_role_arn" {
27
description = "ARN of the IAM Role for the ECS Task"
38
value = "${module.no_lb.task_iam_role_arn}"

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ output "lb_zone_id" {
1313
value = "${module.lb.zone_id}"
1414
}
1515

16+
output "log_group_name" {
17+
description = "Cloudwatch log group name for service"
18+
value = "${local.log_group_name}"
19+
}
20+
1621
output "task_iam_role_arn" {
1722
description = "ARN of the IAM Role for the ECS Task"
1823
value = "${element(concat(aws_iam_role.task.*.arn, list("")), 0)}"

resource-plan-graph.png

32 KB
Loading

0 commit comments

Comments
 (0)