Skip to content

Commit

Permalink
feat: add 'eks_cluster_oidc_provider_arn', 'eks_cluster_primary_secur…
Browse files Browse the repository at this point in the history
…ity_group_id', 'eks_worker_additional_security_group_id' outputs
  • Loading branch information
g-iannelli committed Jan 9, 2023
1 parent 474bdd2 commit be5841c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
23 changes: 13 additions & 10 deletions modules/eks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -149,4 +152,4 @@ module "my-cluster" {
```

<!-- </KFD-DOCS> -->
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
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 be5841c

Please sign in to comment.