From be5841c581356ba8b3510c9acb4904fb04e0210b Mon Sep 17 00:00:00 2001 From: Giuseppe Iannelli <94362884+g-iannelli@users.noreply.github.com> Date: Mon, 9 Jan 2023 09:40:17 +0100 Subject: [PATCH] feat: add 'eks_cluster_oidc_provider_arn', 'eks_cluster_primary_security_group_id', 'eks_worker_additional_security_group_id' outputs --- modules/eks/README.md | 23 +++++++++++++---------- modules/eks/output.tf | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/modules/eks/README.md b/modules/eks/README.md index 9612d1f..38ea573 100644 --- a/modules/eks/README.md +++ b/modules/eks/README.md @@ -37,15 +37,18 @@ ## Outputs -| Name | Description | -|------|-------------| -| cluster\_certificate\_authority | The base64 encoded certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster | -| cluster\_endpoint | The endpoint for your Kubernetes API server | -| eks\_cluster\_oidc\_issuer\_url | The URL on the EKS cluster OIDC Issuer | -| eks\_worker\_iam\_role\_name | Default IAM role name for EKS worker groups | -| eks\_worker\_security\_group\_id | Security group ID attached to the EKS workers. | -| eks\_workers\_asg\_names | Names of the autoscaling groups containing workers. | -| operator\_ssh\_user | SSH user to access cluster nodes with ssh\_public\_key | +| Name | Description | +|----------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| cluster\_certificate\_authority | The base64 encoded certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster. | +| cluster\_endpoint | The endpoint for your Kubernetes API server. | +| eks\_cluster\_oidc\_provider\_arn | The ARN of the OIDC Provider. | +| eks\_cluster\_oidc\_issuer\_url | The URL on the EKS cluster OIDC Issuer. | +| eks\_cluster\_primary\_security\_group\_id | The cluster primary security group ID created by the EKS cluster. | +| eks\_worker\_additional\_security\_group\_id | Additional security group ID attached to EKS workers. | +| eks\_worker\_iam\_role\_name | Default IAM role name for EKS worker groups. | +| eks\_worker\_security\_group\_id | Security group ID attached to the EKS workers. | +| eks\_workers\_asg\_names | Names of the autoscaling groups containing workers. | +| operator\_ssh\_user | SSH user to access cluster nodes with ssh\_public\_key | ## Usage @@ -149,4 +152,4 @@ module "my-cluster" { ``` - \ No newline at end of file + diff --git a/modules/eks/output.tf b/modules/eks/output.tf index ca72547..a89bc94 100644 --- a/modules/eks/output.tf +++ b/modules/eks/output.tf @@ -18,6 +18,11 @@ output "eks_cluster_oidc_issuer_url" { value = module.cluster.cluster_oidc_issuer_url } +output "eks_cluster_oidc_provider_arn" { + description = "The ARN of the OIDC Provider" + value = module.cluster.oidc_provider_arn +} + output "eks_worker_iam_role_name" { description = "Default IAM role name for EKS worker groups" value = module.cluster.worker_iam_role_name @@ -28,7 +33,17 @@ output "eks_workers_asg_names" { value = module.cluster.workers_asg_names } +output "eks_cluster_primary_security_group_id" { + description = "The cluster primary security group ID created by the EKS cluster on 1.14 or later. Referred to as 'Cluster security group' in the EKS console." + value = module.cluster.cluster_primary_security_group_id +} + output "eks_worker_security_group_id" { description = "Security group ID attached to the EKS workers." value = module.cluster.worker_security_group_id } + +output "eks_worker_additional_security_group_id" { + description = "Additional security group ID attached to EKS workers." + value = aws_security_group.nodes.id +} \ No newline at end of file