From 5f61c20b4f03944f04b50d7add5c0f0caa5a72c1 Mon Sep 17 00:00:00 2001 From: krrrr38 Date: Wed, 28 Oct 2020 18:20:14 +0900 Subject: [PATCH] feat: Add `cloudwatch_log_group_arn` to outputs --- README.md | 1 + outputs.tf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index dddacf4b8b..657c6a3c85 100644 --- a/README.md +++ b/README.md @@ -230,6 +230,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a | Name | Description | |------|-------------| +| cloudwatch\_log\_group\_arn | Arn of cloudwatch log group created | | cloudwatch\_log\_group\_name | Name of cloudwatch log group created | | cluster\_arn | The Amazon Resource Name (ARN) of the cluster. | | cluster\_certificate\_authority\_data | Nested attribute containing certificate-authority-data for your cluster. This is the base64 encoded certificate data required to communicate with your cluster. | diff --git a/outputs.tf b/outputs.tf index a1ac5e579b..ba346da26b 100644 --- a/outputs.tf +++ b/outputs.tf @@ -61,6 +61,11 @@ output "cloudwatch_log_group_name" { value = aws_cloudwatch_log_group.this[*].name } +output "cloudwatch_log_group_arn" { + description = "Arn of cloudwatch log group created" + value = element(concat(aws_cloudwatch_log_group.this[*].arn, list("")), 0) +} + output "kubeconfig" { description = "kubectl config file contents for this EKS cluster." value = local.kubeconfig