fix: Updated code and version requirements to work with Terraform 0.15 (#1165)

This commit is contained in:
Tjeu Kayim
2021-04-16 09:56:37 +02:00
committed by GitHub
parent a26c9fd0c9
commit 2a6f07a0e8
33 changed files with 530 additions and 443 deletions

View File

@@ -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" {