Skip to content

Commit

Permalink
Merge pull request #45 from sighupio/feat/eks-module-output
Browse files Browse the repository at this point in the history
feat: add some outputs for v1.10.x
  • Loading branch information
nutellinoit authored Jan 9, 2023
2 parents a8274a4 + 1ddf4ac commit 5f3741c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
21 changes: 12 additions & 9 deletions modules/eks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,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

Expand Down
15 changes: 15 additions & 0 deletions modules/eks/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

0 comments on commit 5f3741c

Please sign in to comment.