Skip to content

Commit

Permalink
Changed output to eks_cluster_name
Browse files Browse the repository at this point in the history
  • Loading branch information
dpappa committed Sep 23, 2024
1 parent 858b4ed commit b44ca98
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ A bare minimum configuration to execute the module:

```hcl
data "aws_eks_cluster" "cluster" {
name = module.eks_cluster.eks_cluster_id
name = module.eks_cluster.eks_cluster_name
}
data "aws_eks_cluster_auth" "cluster" {
name = module.eks_cluster.eks_cluster_id
name = module.eks_cluster.eks_cluster_name
}
provider "aws" {
Expand Down Expand Up @@ -393,7 +393,7 @@ _Note: Since this module manages all of the Kubernetes addon dependencies requir
| <a name="output_eks_cluster_arn"></a> [eks\_cluster\_arn](#output\_eks\_cluster\_arn) | The ARN for the EKS cluster created by this module |
| <a name="output_eks_cluster_certificate_authority_data"></a> [eks\_cluster\_certificate\_authority\_data](#output\_eks\_cluster\_certificate\_authority\_data) | Base64 encoded certificate data required to communicate with the cluster |
| <a name="output_eks_cluster_endpoint"></a> [eks\_cluster\_endpoint](#output\_eks\_cluster\_endpoint) | The endpoint for the EKS cluster created by this module |
| <a name="output_eks_cluster_id"></a> [eks\_cluster\_id](#output\_eks\_cluster\_id) | The id/name of the EKS cluster created by this module |
| <a name="output_eks_cluster_name"></a> [eks\_cluster\_name](#output\_eks\_cluster\_name) | The name of the EKS cluster created by this module |
| <a name="output_eks_cluster_identity_oidc_issuer_arn"></a> [eks\_cluster\_identity\_oidc\_issuer\_arn](#output\_eks\_cluster\_identity\_oidc\_issuer\_arn) | The ARN for the OIDC issuer created by this module |
| <a name="output_eks_cluster_identity_oidc_issuer_string"></a> [eks\_cluster\_identity\_oidc\_issuer\_string](#output\_eks\_cluster\_identity\_oidc\_issuer\_string) | A formatted string containing the prefix for the OIDC issuer created by this module. Same as "cluster\_oidc\_issuer\_url", but with "https://" stripped from the name. This output is typically used in other StreamNative modules that request the "oidc\_issuer" input. |
| <a name="output_eks_cluster_identity_oidc_issuer_url"></a> [eks\_cluster\_identity\_oidc\_issuer\_url](#output\_eks\_cluster\_identity\_oidc\_issuer\_url) | The URL for the OIDC issuer created by this module |
Expand Down
4 changes: 2 additions & 2 deletions examples/example-with-vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ terraform {
### These data sources are required by the Kubernetes and Helm providers in order to connect to the newly provisioned cluster
#######
data "aws_eks_cluster" "cluster" {
name = module.sn_cluster.eks_cluster_id
name = module.sn_cluster.eks_cluster_name
}

data "aws_eks_cluster_auth" "cluster" {
name = module.sn_cluster.eks_cluster_id
name = module.sn_cluster.eks_cluster_name
}

data "aws_caller_identity" "current" {}
Expand Down
4 changes: 2 additions & 2 deletions examples/root-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ variable "region" {
### These data sources are required by the Kubernetes and Helm providers in order to connect to the newly provisioned cluster
#######
data "aws_eks_cluster" "cluster" {
name = module.sn_cluster.eks_cluster_id
name = module.sn_cluster.eks_cluster_name
}

data "aws_eks_cluster_auth" "cluster" {
name = module.sn_cluster.eks_cluster_id
name = module.sn_cluster.eks_cluster_name
}

provider "aws" {
Expand Down
14 changes: 7 additions & 7 deletions examples/streamnative-platform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ provider "kubernetes" {
}

data "aws_eks_cluster" "cluster" {
name = module.sn_cluster.eks_cluster_id
name = module.sn_cluster.eks_cluster_name
}

data "aws_eks_cluster_auth" "cluster" {
name = module.sn_cluster.eks_cluster_id
name = module.sn_cluster.eks_cluster_name
}

data "aws_caller_identity" "current" {}
Expand Down Expand Up @@ -131,7 +131,7 @@ module "sn_bootstrap" {
module "sn_tiered_storage_resources" {
source = "github.com/streamnative/terraform-aws-cloud//modules/tiered-storage-resources?ref=v2.2.4-alpha"

cluster_name = module.sn_cluster.eks_cluster_id
cluster_name = module.sn_cluster.eks_cluster_name
oidc_issuer = module.sn_cluster.eks_cluster_identity_oidc_issuer_string
pulsar_namespace = local.pulsar_namespace

Expand All @@ -151,7 +151,7 @@ module "sn_tiered_storage_resources" {
module "sn_tiered_storage_vault_resources" {
source = "github.com/streamnative/terraform-aws-cloud//modules/vault-resources?ref=v2.2.4-alpha"

cluster_name = module.sn_cluster.eks_cluster_id
cluster_name = module.sn_cluster.eks_cluster_name
oidc_issuer = module.sn_cluster.eks_cluster_identity_oidc_issuer_string
pulsar_namespace = local.pulsar_namespace

Expand Down Expand Up @@ -183,11 +183,11 @@ output "cleanup_for_destroying_cluster" {
}

output "connect_to_cluster" {
value = format("aws eks update-kubeconfig --name %s --kubeconfig ~/.kube/config --region %s", module.sn_cluster.eks_cluster_id, local.region)
value = format("aws eks update-kubeconfig --name %s --kubeconfig ~/.kube/config --region %s", module.sn_cluster.eks_cluster_name, local.region)
}

output "eks_cluster_id" {
value = module.sn_cluster.eks_cluster_id
output "eks_cluster_name" {
value = module.sn_cluster.eks_cluster_name
}

output "vpc_id" {
Expand Down
6 changes: 3 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ output "eks_cluster_endpoint" {
description = "The endpoint for the EKS cluster created by this module"
}

output "eks_cluster_id" {
value = module.eks.cluster_id
description = "The id/name of the EKS cluster created by this module"
output "eks_cluster_name" {
value = module.eks.cluster_name
description = "The name of the EKS cluster created by this module"
}

output "eks_cluster_identity_oidc_issuer_url" {
Expand Down

0 comments on commit b44ca98

Please sign in to comment.