fix: The type of the output cloudwatch_log_group_name should be a string instead of a list of strings (#1061)

NOTES: The output `cloudwatch_log_group_name` was incorrectly returning the log group name as a list of strings. As a workaround, people were using `module.eks_cluster.cloudwatch_log_group_name[0]` but that was totally inconsistent with output name. Those users can now use `module.eks_cluster.cloudwatch_log_group_name` directly.
This commit is contained in:
Paul Pop
2020-10-28 21:37:21 +00:00
committed by GitHub
parent 751c422330
commit ca7593a6db
3 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ output "cluster_primary_security_group_id" {
output "cloudwatch_log_group_name" {
description = "Name of cloudwatch log group created"
value = aws_cloudwatch_log_group.this[*].name
value = element(concat(aws_cloudwatch_log_group.this[*].name, list("")), 0)
}
output "kubeconfig" {