diff --git a/CHANGELOG.md b/CHANGELOG.md index ceb1a2c..31f78e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ project adheres to [Semantic Versioning](http://semver.org/). ### Added - Option to set a KMS key for the log group and encrypt it (by @till-krauss) + - Output the name of the cloudwatch log group (by @gbooth27) - Write your awesome addition here (by @you) ### Changed diff --git a/README.md b/README.md index 82a2321..44d78cd 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a | cluster\_id | The name/id of the EKS cluster. | | cluster\_security\_group\_id | Security group ID attached to the EKS cluster. | | cluster\_version | The Kubernetes server version for the EKS cluster. | +| cloudwatch\_log\_group\_name | The name of the cloudwatch log group created for the EKS cluster. | | config\_map\_aws\_auth | A kubernetes configuration to authenticate to this EKS cluster. | | kubeconfig | kubectl config file contents for this EKS cluster. | | kubeconfig\_filename | The filename of the generated kubectl config. | diff --git a/outputs.tf b/outputs.tf index 1dfbfaa..a65c76f 100644 --- a/outputs.tf +++ b/outputs.tf @@ -43,6 +43,11 @@ output "cluster_iam_role_arn" { value = local.cluster_iam_role_arn } +output "cloudwatch_log_group_name" { + description = "Name of cloudwatch log group created" + value = aws_cloudwatch_log_group.this.*.name +} + output "kubeconfig" { description = "kubectl config file contents for this EKS cluster." value = data.template_file.kubeconfig.rendered