mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-24 18:31:09 +01:00
fix: Updated code and version requirements to work with Terraform 0.15 (#1165)
This commit is contained in:
14
outputs.tf
14
outputs.tf
@@ -1,6 +1,6 @@
|
||||
output "cluster_id" {
|
||||
description = "The name/id of the EKS cluster. Will block on cluster creation until the cluster is really ready"
|
||||
value = element(concat(aws_eks_cluster.this.*.id, list("")), 0)
|
||||
value = element(concat(aws_eks_cluster.this.*.id, [""]), 0)
|
||||
# So that calling plans wait for the cluster to be available before attempting
|
||||
# to use it. They will not need to duplicate this null_resource
|
||||
depends_on = [null_resource.wait_for_cluster]
|
||||
@@ -8,22 +8,22 @@ output "cluster_id" {
|
||||
|
||||
output "cluster_arn" {
|
||||
description = "The Amazon Resource Name (ARN) of the cluster."
|
||||
value = element(concat(aws_eks_cluster.this.*.arn, list("")), 0)
|
||||
value = element(concat(aws_eks_cluster.this.*.arn, [""]), 0)
|
||||
}
|
||||
|
||||
output "cluster_certificate_authority_data" {
|
||||
description = "Nested attribute containing certificate-authority-data for your cluster. This is the base64 encoded certificate data required to communicate with your cluster."
|
||||
value = element(concat(aws_eks_cluster.this[*].certificate_authority[0].data, list("")), 0)
|
||||
value = element(concat(aws_eks_cluster.this[*].certificate_authority[0].data, [""]), 0)
|
||||
}
|
||||
|
||||
output "cluster_endpoint" {
|
||||
description = "The endpoint for your EKS Kubernetes API."
|
||||
value = element(concat(aws_eks_cluster.this.*.endpoint, list("")), 0)
|
||||
value = element(concat(aws_eks_cluster.this.*.endpoint, [""]), 0)
|
||||
}
|
||||
|
||||
output "cluster_version" {
|
||||
description = "The Kubernetes server version for the EKS cluster."
|
||||
value = element(concat(aws_eks_cluster.this[*].version, list("")), 0)
|
||||
value = element(concat(aws_eks_cluster.this[*].version, [""]), 0)
|
||||
}
|
||||
|
||||
output "cluster_security_group_id" {
|
||||
@@ -58,12 +58,12 @@ output "cluster_primary_security_group_id" {
|
||||
|
||||
output "cloudwatch_log_group_name" {
|
||||
description = "Name of cloudwatch log group created"
|
||||
value = element(concat(aws_cloudwatch_log_group.this[*].name, list("")), 0)
|
||||
value = element(concat(aws_cloudwatch_log_group.this[*].name, [""]), 0)
|
||||
}
|
||||
|
||||
output "cloudwatch_log_group_arn" {
|
||||
description = "Arn of cloudwatch log group created"
|
||||
value = element(concat(aws_cloudwatch_log_group.this[*].arn, list("")), 0)
|
||||
value = element(concat(aws_cloudwatch_log_group.this[*].arn, [""]), 0)
|
||||
}
|
||||
|
||||
output "kubeconfig" {
|
||||
|
||||
Reference in New Issue
Block a user