mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-09 18:53:34 +02:00
feat: New Karpenter sub-module for easily enabling Karpenter on EKS (#2303)
This commit is contained in:
@@ -17,8 +17,13 @@ output "cluster_endpoint" {
|
||||
value = module.eks.cluster_endpoint
|
||||
}
|
||||
|
||||
output "cluster_name" {
|
||||
description = "The name of the EKS cluster. Will block on cluster creation until the cluster is really ready"
|
||||
value = module.eks.cluster_name
|
||||
}
|
||||
|
||||
output "cluster_id" {
|
||||
description = "The name/id of the EKS cluster. Will block on cluster creation until the cluster is really ready"
|
||||
description = "The id of the EKS cluster. Will block on cluster creation until the cluster is really ready"
|
||||
value = module.eks.cluster_id
|
||||
}
|
||||
|
||||
@@ -185,3 +190,93 @@ output "aws_auth_configmap_yaml" {
|
||||
description = "Formatted yaml output for base aws-auth configmap containing roles used in cluster node groups/fargate profiles"
|
||||
value = module.eks.aws_auth_configmap_yaml
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# IAM Role for Service Account (IRSA)
|
||||
################################################################################
|
||||
|
||||
output "karpenter_irsa_name" {
|
||||
description = "The name of the IAM role for service accounts"
|
||||
value = module.karpenter.irsa_name
|
||||
}
|
||||
|
||||
output "karpenter_irsa_arn" {
|
||||
description = "The Amazon Resource Name (ARN) specifying the IAM role for service accounts"
|
||||
value = module.karpenter.irsa_arn
|
||||
}
|
||||
|
||||
output "karpenter_irsa_unique_id" {
|
||||
description = "Stable and unique string identifying the IAM role for service accounts"
|
||||
value = module.karpenter.irsa_unique_id
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Node Termination Queue
|
||||
################################################################################
|
||||
|
||||
output "karpenter_queue_arn" {
|
||||
description = "The ARN of the SQS queue"
|
||||
value = module.karpenter.queue_arn
|
||||
}
|
||||
|
||||
output "karpenter_queue_name" {
|
||||
description = "The name of the created Amazon SQS queue"
|
||||
value = module.karpenter.queue_name
|
||||
}
|
||||
|
||||
output "karpenter_queue_url" {
|
||||
description = "The URL for the created Amazon SQS queue"
|
||||
value = module.karpenter.queue_url
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Node Termination Event Rules
|
||||
################################################################################
|
||||
|
||||
output "karpenter_event_rules" {
|
||||
description = "Map of the event rules created and their attributes"
|
||||
value = module.karpenter.event_rules
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Node IAM Role
|
||||
################################################################################
|
||||
|
||||
output "karpenter_role_name" {
|
||||
description = "The name of the IAM role"
|
||||
value = module.karpenter.role_name
|
||||
}
|
||||
|
||||
output "karpenter_role_arn" {
|
||||
description = "The Amazon Resource Name (ARN) specifying the IAM role"
|
||||
value = module.karpenter.role_arn
|
||||
}
|
||||
|
||||
output "karpenter_role_unique_id" {
|
||||
description = "Stable and unique string identifying the IAM role"
|
||||
value = module.karpenter.role_unique_id
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Node IAM Instance Profile
|
||||
################################################################################
|
||||
|
||||
output "karpenter_instance_profile_arn" {
|
||||
description = "ARN assigned by AWS to the instance profile"
|
||||
value = module.karpenter.instance_profile_arn
|
||||
}
|
||||
|
||||
output "karpenter_instance_profile_id" {
|
||||
description = "Instance profile's ID"
|
||||
value = module.karpenter.instance_profile_id
|
||||
}
|
||||
|
||||
output "karpenter_instance_profile_name" {
|
||||
description = "Name of the instance profile"
|
||||
value = module.karpenter.instance_profile_name
|
||||
}
|
||||
|
||||
output "karpenter_instance_profile_unique" {
|
||||
description = "Stable and unique string identifying the IAM instance profile"
|
||||
value = module.karpenter.instance_profile_unique
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user