mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-15 08:14:12 +01:00
113 lines
3.8 KiB
HCL
113 lines
3.8 KiB
HCL
################################################################################
|
|
# Karpenter controller IAM Role
|
|
################################################################################
|
|
|
|
output "iam_role_name" {
|
|
description = "The name of the controller IAM role"
|
|
value = try(aws_iam_role.controller[0].name, null)
|
|
}
|
|
|
|
output "iam_role_arn" {
|
|
description = "The Amazon Resource Name (ARN) specifying the controller IAM role"
|
|
value = try(aws_iam_role.controller[0].arn, null)
|
|
}
|
|
|
|
output "iam_role_unique_id" {
|
|
description = "Stable and unique string identifying the controller IAM role"
|
|
value = try(aws_iam_role.controller[0].unique_id, null)
|
|
}
|
|
|
|
################################################################################
|
|
# Node Termination Queue
|
|
################################################################################
|
|
|
|
output "queue_arn" {
|
|
description = "The ARN of the SQS queue"
|
|
value = try(aws_sqs_queue.this[0].arn, null)
|
|
}
|
|
|
|
output "queue_name" {
|
|
description = "The name of the created Amazon SQS queue"
|
|
value = try(aws_sqs_queue.this[0].name, null)
|
|
}
|
|
|
|
output "queue_url" {
|
|
description = "The URL for the created Amazon SQS queue"
|
|
value = try(aws_sqs_queue.this[0].url, null)
|
|
}
|
|
|
|
################################################################################
|
|
# Node Termination Event Rules
|
|
################################################################################
|
|
|
|
output "event_rules" {
|
|
description = "Map of the event rules created and their attributes"
|
|
value = aws_cloudwatch_event_rule.this
|
|
}
|
|
|
|
################################################################################
|
|
# Node IAM Role
|
|
################################################################################
|
|
|
|
output "node_iam_role_name" {
|
|
description = "The name of the node IAM role"
|
|
value = try(aws_iam_role.node[0].name, null)
|
|
}
|
|
|
|
output "node_iam_role_arn" {
|
|
description = "The Amazon Resource Name (ARN) specifying the node IAM role"
|
|
value = try(aws_iam_role.node[0].arn, var.node_iam_role_arn)
|
|
}
|
|
|
|
output "node_iam_role_unique_id" {
|
|
description = "Stable and unique string identifying the node IAM role"
|
|
value = try(aws_iam_role.node[0].unique_id, null)
|
|
}
|
|
|
|
################################################################################
|
|
# Access Entry
|
|
################################################################################
|
|
|
|
output "node_access_entry_arn" {
|
|
description = "Amazon Resource Name (ARN) of the node Access Entry"
|
|
value = try(aws_eks_access_entry.node[0].access_entry_arn, null)
|
|
}
|
|
|
|
################################################################################
|
|
# Node IAM Instance Profile
|
|
################################################################################
|
|
|
|
output "instance_profile_arn" {
|
|
description = "ARN assigned by AWS to the instance profile"
|
|
value = try(aws_iam_instance_profile.this[0].arn, null)
|
|
}
|
|
|
|
output "instance_profile_id" {
|
|
description = "Instance profile's ID"
|
|
value = try(aws_iam_instance_profile.this[0].id, null)
|
|
}
|
|
|
|
output "instance_profile_name" {
|
|
description = "Name of the instance profile"
|
|
value = try(aws_iam_instance_profile.this[0].name, null)
|
|
}
|
|
|
|
output "instance_profile_unique" {
|
|
description = "Stable and unique string identifying the IAM instance profile"
|
|
value = try(aws_iam_instance_profile.this[0].unique_id, null)
|
|
}
|
|
|
|
################################################################################
|
|
# Pod Identity
|
|
################################################################################
|
|
|
|
output "namespace" {
|
|
description = "Namespace associated with the Karpenter Pod Identity"
|
|
value = var.namespace
|
|
}
|
|
|
|
output "service_account" {
|
|
description = "Service Account associated with the Karpenter Pod Identity"
|
|
value = var.service_account
|
|
}
|