Skip to content

Commit

Permalink
additional outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
paliwalvimal committed Aug 14, 2022
1 parent 20d0ffd commit 514aa9c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ module "eks_worker" {
|------|-------------|
| arn | ARN of EKS node group created |
| id | EKS Cluster name and EKS Node Group name separated by a colon |
| cluster_name | Name of EKS cluster attached to the node group |
| role_arn | ARN of IAM role associated with EKS node group |
| status | Status of EKS node group |
| name | Name of the managed node group associated with the EKS cluster |
| cluster_name | Name of the EKS cluster attached to the node group |
| role_arn | ARN of the IAM role associated with EKS node group |
| role_name | Name of the IAM role associated with EKS node group |
| status | Status of the EKS node group |

## Cluster Autoscaler Setup (Source: [AWS](https://docs.aws.amazon.com/eks/latest/userguide/cluster-autoscaler.html#ca-deploy))
To enable Cluster Autoscaler execute the following steps:
Expand Down
16 changes: 13 additions & 3 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,27 @@ output "id" {
description = "EKS Cluster name and EKS Node Group name separated by a colon"
}

output "name" {
value = aws_eks_node_group.eks_ng.node_group_name
description = "Name of the managed node group associated with the EKS cluster"
}

output "cluster_name" {
value = aws_eks_node_group.eks_ng.cluster_name
description = "Name of EKS cluster attached to the node group"
description = "Name of the EKS cluster attached to the node group"
}

output "role_arn" {
value = local.node_role_arn
description = "ARN of IAM role associated with EKS node group"
description = "ARN of the IAM role associated with EKS node group"
}

output "role_name" {
value = split("/", local.node_role_arn)[1]
description = "Name of the IAM role associated with EKS node group"
}

output "status" {
value = aws_eks_node_group.eks_ng.status
description = "Status of EKS node group"
description = "Status of the EKS node group"
}

0 comments on commit 514aa9c

Please sign in to comment.