fix: Forces cluster outputs to wait until access entries are complete (#3000)

This commit is contained in:
Loren Gordon
2024-04-08 15:45:48 -07:00
committed by GitHub
parent 07be37dc7a
commit e2a39c0f26
3 changed files with 20 additions and 8 deletions

View File

@@ -5,16 +5,31 @@
output "cluster_arn" {
description = "The Amazon Resource Name (ARN) of the cluster"
value = try(aws_eks_cluster.this[0].arn, null)
depends_on = [
aws_eks_access_entry.this,
aws_eks_access_policy_association.this,
]
}
output "cluster_certificate_authority_data" {
description = "Base64 encoded certificate data required to communicate with the cluster"
value = try(aws_eks_cluster.this[0].certificate_authority[0].data, null)
depends_on = [
aws_eks_access_entry.this,
aws_eks_access_policy_association.this,
]
}
output "cluster_endpoint" {
description = "Endpoint for your Kubernetes API server"
value = try(aws_eks_cluster.this[0].endpoint, null)
depends_on = [
aws_eks_access_entry.this,
aws_eks_access_policy_association.this,
]
}
output "cluster_id" {
@@ -25,6 +40,11 @@ output "cluster_id" {
output "cluster_name" {
description = "The name of the EKS cluster"
value = try(aws_eks_cluster.this[0].name, "")
depends_on = [
aws_eks_access_entry.this,
aws_eks_access_policy_association.this,
]
}
output "cluster_oidc_issuer_url" {