mirror of
https://github.com/terraform-aws-modules/terraform-aws-eks.git
synced 2025-09-09 19:32:58 +08:00
416515a0da
* feat!: Upgrade min AWS provider and Terraform versions to `6.0` and `1.5.7` respectively * fix: Remove deprecated arguments in AWS v6.0 provider, upgrade Helm provider to v3.0, bump VPC module to v6.0 * fix: Remove `aws-auth` sub-module * fix: Remove `platform` and `cluster_service_ipv4_cidr` variables from `user-data` sub-module * fix: Resolve all marked `todos` that have been accumulated * fix: Set default `http_put_response_hop_limit` to `1` * fix: Remove IRSA support from Karpenter sub-module * fix: Avoid making GET requests from data sources unless absolutely necessary * feat: Add variable optional attribute definitions * feat: Bump KMS key module version to latest, add remaining variable attribute definitions * fix: Remove `cluster_` prefix from variable names to better match the underlying API * fix: Move all EFA logic to the nodegroup itself * fix: Remove arguments that do not make sense in EKS * fix: Updates from plan validation * fix: Remove more self-managed node group attributes that are commonly not used in EKS clusters * fix: Remove data plane compute `*_defaults` variables that do not work with variable optional attributes * fix: Ignore changes to `bootstrap_self_managed_addons` to aid in upgrade * feat: Add support for `region` argument on relevant resources * feat: Initial pass on upgrade guide * fix: Updates from testing and validating EKS managed node group * fix: Updates from testing and validating self-managed node group * docs: Ensure addon ussage documented is aligned * feat: Switch to dualstack OIDC issuer URL * feat: Allow sourcing over overriding the Karpenter assume role policy * fix: Use `Bool` instead of `StringEquals` for DenyHTTP queue policy * fix: Correct use of `nullable` and default value propagation
96 lines
3.2 KiB
Terraform
96 lines
3.2 KiB
Terraform
################################################################################
|
|
# Launch template
|
|
################################################################################
|
|
|
|
output "launch_template_id" {
|
|
description = "The ID of the launch template"
|
|
value = try(aws_launch_template.this[0].id, null)
|
|
}
|
|
|
|
output "launch_template_arn" {
|
|
description = "The ARN of the launch template"
|
|
value = try(aws_launch_template.this[0].arn, null)
|
|
}
|
|
|
|
output "launch_template_latest_version" {
|
|
description = "The latest version of the launch template"
|
|
value = try(aws_launch_template.this[0].latest_version, null)
|
|
}
|
|
|
|
output "launch_template_name" {
|
|
description = "The name of the launch template"
|
|
value = try(aws_launch_template.this[0].name, null)
|
|
}
|
|
|
|
################################################################################
|
|
# Node Group
|
|
################################################################################
|
|
|
|
output "node_group_arn" {
|
|
description = "Amazon Resource Name (ARN) of the EKS Node Group"
|
|
value = try(aws_eks_node_group.this[0].arn, null)
|
|
}
|
|
|
|
output "node_group_id" {
|
|
description = "EKS Cluster name and EKS Node Group name separated by a colon (`:`)"
|
|
value = try(aws_eks_node_group.this[0].id, null)
|
|
}
|
|
|
|
output "node_group_resources" {
|
|
description = "List of objects containing information about underlying resources"
|
|
value = try(aws_eks_node_group.this[0].resources, null)
|
|
}
|
|
|
|
output "node_group_autoscaling_group_names" {
|
|
description = "List of the autoscaling group names"
|
|
value = try(flatten(aws_eks_node_group.this[0].resources[*].autoscaling_groups[*].name), [])
|
|
}
|
|
|
|
output "node_group_status" {
|
|
description = "Status of the EKS Node Group"
|
|
value = try(aws_eks_node_group.this[0].status, null)
|
|
}
|
|
|
|
output "node_group_labels" {
|
|
description = "Map of labels applied to the node group"
|
|
value = try(aws_eks_node_group.this[0].labels, {})
|
|
}
|
|
|
|
output "node_group_taints" {
|
|
description = "List of objects containing information about taints applied to the node group"
|
|
value = try(aws_eks_node_group.this[0].taint, [])
|
|
}
|
|
|
|
################################################################################
|
|
# IAM Role
|
|
################################################################################
|
|
|
|
output "iam_role_name" {
|
|
description = "The name of the IAM role"
|
|
value = try(aws_iam_role.this[0].name, null)
|
|
}
|
|
|
|
output "iam_role_arn" {
|
|
description = "The Amazon Resource Name (ARN) specifying the IAM role"
|
|
value = try(aws_iam_role.this[0].arn, var.iam_role_arn)
|
|
}
|
|
|
|
output "iam_role_unique_id" {
|
|
description = "Stable and unique string identifying the IAM role"
|
|
value = try(aws_iam_role.this[0].unique_id, null)
|
|
}
|
|
|
|
################################################################################
|
|
# Security Group
|
|
################################################################################
|
|
|
|
output "security_group_arn" {
|
|
description = "Amazon Resource Name (ARN) of the security group"
|
|
value = try(aws_security_group.this[0].arn, null)
|
|
}
|
|
|
|
output "security_group_id" {
|
|
description = "ID of the security group"
|
|
value = try(aws_security_group.this[0].id, null)
|
|
}
|