Skip to content

Commit

Permalink
Output fixes (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
dahoward5 authored Jul 19, 2024
2 parents 81038e3 + c16403c commit 2293cb5
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 59 deletions.
1 change: 1 addition & 0 deletions eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ module "aws_lb_controller_pod_identity" {
}

module "aws_cloudwatch_observability_pod_identity" {
count = var.enable_eks_pod_identities ? 1 : 0
source = "terraform-aws-modules/eks-pod-identity/aws"

name = "aws-cloudwatch-observability-${module.eks.cluster_name}"
Expand Down
112 changes: 56 additions & 56 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -487,162 +487,162 @@ output "ssm_kms_key_policy" {

output "cloudwatch_observability_pod_identity_associations" {
description = "CloudWatch observability pod identity associations"
value = module.aws_cloudwatch_observability_pod_identity.associations
value = var.enable_eks_pod_identities ? module.aws_cloudwatch_observability_pod_identity[0].associations : {}
}

output "cloudwatch_observability_pod_identity_iam_policy_arn" {
description = "CloudWatch observability pod identity IAM policy ARN"
value = module.aws_cloudwatch_observability_pod_identity.iam_policy_arn
value = var.enable_eks_pod_identities ? module.aws_cloudwatch_observability_pod_identity[0].iam_policy_arn : ""
}

output "cloudwatch_observability_pod_identity_iam_policy_id" {
description = "CloudWatch observability pod identity IAM policy ID"
value = module.aws_cloudwatch_observability_pod_identity.iam_policy_id
value = var.enable_eks_pod_identities ? module.aws_cloudwatch_observability_pod_identity[0].iam_policy_id : ""
}

output "cloudwatch_observability_pod_identity_iam_policy_name" {
description = "CloudWatch observability pod identity IAM policy name"
value = module.aws_cloudwatch_observability_pod_identity.iam_policy_name
value = var.enable_eks_pod_identities ? module.aws_cloudwatch_observability_pod_identity[0].iam_policy_name : ""
}

output "cloudwatch_observability_pod_identity_iam_role_arn" {
description = "CloudWatch observability pod identity IAM role ARN"
value = module.aws_cloudwatch_observability_pod_identity.iam_role_arn
value = var.enable_eks_pod_identities ? module.aws_cloudwatch_observability_pod_identity[0].iam_role_arn : ""
}

output "cloudwatch_observability_pod_identity_iam_role_name" {
description = "CloudWatch observability pod identity IAM role name"
value = module.aws_cloudwatch_observability_pod_identity.iam_role_name
value = var.enable_eks_pod_identities ? module.aws_cloudwatch_observability_pod_identity[0].iam_role_name : ""
}

output "cloudwatch_observability_pod_identity_iam_role_path" {
description = "CloudWatch observability pod identity IAM role path"
value = module.aws_cloudwatch_observability_pod_identity.iam_role_path
value = var.enable_eks_pod_identities ? module.aws_cloudwatch_observability_pod_identity[0].iam_role_path : ""
}

output "cloudwatch_observability_pod_identity_iam_role_unique_id" {
description = "CloudWatch observability pod identity IAM role unique ID"
value = module.aws_cloudwatch_observability_pod_identity.iam_role_unique_id
value = var.enable_eks_pod_identities ? module.aws_cloudwatch_observability_pod_identity[0].iam_role_unique_id : ""
}

output "ebs_csi_pod_identity_associations" {
description = "EBS CSI pod identity associations"
value = module.aws_ebs_csi_pod_identity.associations
value = var.enable_eks_pod_identities ? module.aws_ebs_csi_pod_identity[0].associations : {}
}

output "ebs_csi_pod_identity_iam_policy_arn" {
description = "EBS CSI pod identity IAM policy ARN"
value = module.aws_ebs_csi_pod_identity.iam_policy_arn
value = var.enable_eks_pod_identities ? module.aws_ebs_csi_pod_identity[0].iam_policy_arn : ""
}

output "ebs_csi_pod_identity_iam_policy_id" {
description = "EBS CSI pod identity IAM policy ID"
value = module.aws_ebs_csi_pod_identity.iam_policy_id
value = var.enable_eks_pod_identities ? module.aws_ebs_csi_pod_identity[0].iam_policy_id : ""
}

output "ebs_csi_pod_identity_iam_policy_name" {
description = "EBS CSI pod identity IAM policy name"
value = module.aws_ebs_csi_pod_identity.iam_policy_name
value = var.enable_eks_pod_identities ? module.aws_ebs_csi_pod_identity[0].iam_policy_name : ""
}

output "ebs_csi_pod_identity_iam_role_arn" {
description = "EBS CSI pod identity IAM role ARN"
value = module.aws_ebs_csi_pod_identity.iam_role_arn
value = var.enable_eks_pod_identities ? module.aws_ebs_csi_pod_identity[0].iam_role_arn : ""
}

output "ebs_csi_pod_identity_iam_role_name" {
description = "EBS CSI pod identity IAM role name"
value = module.aws_ebs_csi_pod_identity.iam_role_name
value = var.enable_eks_pod_identities ? module.aws_ebs_csi_pod_identity[0].iam_role_name : ""
}

output "ebs_csi_pod_identity_iam_role_path" {
description = "EBS CSI pod identity IAM role path"
value = module.aws_ebs_csi_pod_identity.iam_role_path
value = var.enable_eks_pod_identities ? module.aws_ebs_csi_pod_identity[0].iam_role_path : ""
}

output "ebs_csi_pod_identity_iam_role_unique_id" {
description = "EBS CSI pod identity IAM role unique ID"
value = module.aws_ebs_csi_pod_identity.iam_role_unique_id
value = var.enable_eks_pod_identities ? module.aws_ebs_csi_pod_identity[0].iam_role_unique_id : ""
}

output "efs_csi_pod_identity_associations" {
description = "EFS CSI pod identity associations"
value = module.aws_efs_csi_pod_identity.associations
value = var.enable_eks_pod_identities ? module.aws_efs_csi_pod_identity[0].associations : {}
}

output "efs_csi_pod_identity_iam_policy_arn" {
description = "EFS CSI pod identity IAM policy ARN"
value = module.aws_efs_csi_pod_identity.iam_policy_arn
value = var.enable_eks_pod_identities ? module.aws_efs_csi_pod_identity[0].iam_policy_arn : ""
}

output "efs_csi_pod_identity_iam_policy_id" {
description = "EFS CSI pod identity IAM policy ID"
value = module.aws_efs_csi_pod_identity.iam_policy_id
value = var.enable_eks_pod_identities ? module.aws_efs_csi_pod_identity[0].iam_policy_id : ""
}

output "efs_csi_pod_identity_iam_policy_name" {
description = "EFS CSI pod identity IAM policy name"
value = module.aws_efs_csi_pod_identity.iam_policy_name
value = var.enable_eks_pod_identities ? module.aws_efs_csi_pod_identity[0].iam_policy_name : ""
}

output "efs_csi_pod_identity_iam_role_arn" {
description = "EFS CSI pod identity IAM role ARN"
value = module.aws_efs_csi_pod_identity.iam_role_arn
value = var.enable_eks_pod_identities ? module.aws_efs_csi_pod_identity[0].iam_role_arn : ""
}

output "efs_csi_pod_identity_iam_role_name" {
description = "EFS CSI pod identity IAM role name"
value = module.aws_efs_csi_pod_identity.iam_role_name
value = var.enable_eks_pod_identities ? module.aws_efs_csi_pod_identity[0].iam_role_name : ""
}

output "efs_csi_pod_identity_iam_role_path" {
description = "EFS CSI pod identity IAM role path"
value = module.aws_efs_csi_pod_identity.iam_role_path
value = var.enable_eks_pod_identities ? module.aws_efs_csi_pod_identity[0].iam_role_path : ""
}

output "efs_csi_pod_identity_iam_role_unique_id" {
description = "EFS CSI pod identity IAM role unique ID"
value = module.aws_efs_csi_pod_identity.iam_role_unique_id
value = var.enable_eks_pod_identities ? module.aws_efs_csi_pod_identity[0].iam_role_unique_id : ""
}

output "lb_controller_pod_identity_associations" {
description = "LB controller pod identity associations"
value = module.aws_lb_controller_pod_identity.associations
value = var.enable_eks_pod_identities ? module.aws_lb_controller_pod_identity[0].associations : {}
}

output "lb_controller_pod_identity_iam_policy_arn" {
description = "LB controller pod identity IAM policy ARN"
value = module.aws_lb_controller_pod_identity.iam_policy_arn
value = var.enable_eks_pod_identities ? module.aws_lb_controller_pod_identity[0].iam_policy_arn : ""
}

output "lb_controller_pod_identity_iam_policy_id" {
description = "LB controller pod identity IAM policy ID"
value = module.aws_lb_controller_pod_identity.iam_policy_id
value = var.enable_eks_pod_identities ? module.aws_lb_controller_pod_identity[0].iam_policy_id : ""
}

output "lb_controller_pod_identity_iam_policy_name" {
description = "LB controller pod identity IAM policy name"
value = module.aws_lb_controller_pod_identity.iam_policy_name
value = var.enable_eks_pod_identities ? module.aws_lb_controller_pod_identity[0].iam_policy_name : ""
}

output "lb_controller_pod_identity_iam_role_arn" {
description = "LB controller pod identity IAM role ARN"
value = module.aws_lb_controller_pod_identity.iam_role_arn
value = var.enable_eks_pod_identities ? module.aws_lb_controller_pod_identity[0].iam_role_arn : ""
}

output "lb_controller_pod_identity_iam_role_name" {
description = "LB controller pod identity IAM role name"
value = module.aws_lb_controller_pod_identity.iam_role_name
value = var.enable_eks_pod_identities ? module.aws_lb_controller_pod_identity[0].iam_role_name : ""
}

output "lb_controller_pod_identity_iam_role_path" {
description = "LB controller pod identity IAM role path"
value = module.aws_lb_controller_pod_identity.iam_role_path
value = var.enable_eks_pod_identities ? module.aws_lb_controller_pod_identity[0].iam_role_path : ""
}

output "lb_controller_pod_identity_iam_role_unique_id" {
description = "LB controller pod identity IAM role unique ID"
value = module.aws_lb_controller_pod_identity.iam_role_unique_id
value = var.enable_eks_pod_identities ? module.aws_lb_controller_pod_identity[0].iam_role_unique_id : ""
}

#################################################################################
Expand Down Expand Up @@ -723,42 +723,42 @@ output "efs_file_system_tags_all" {
value = aws_efs_file_system.main.tags_all
}

output "efs_mount_target_availability_zone_id" {
description = "EFS mount target availability zone ID"
value = aws_efs_mount_target.main.availability_zone_id
output "efs_mount_target_availability_zone_ids" {
description = "EFS mount target availability zone IDs"
value = [ for resource in aws_efs_mount_target.main : resource.availability_zone_id ]
}

output "efs_mount_target_availability_zone_name" {
description = "EFS mount target availability zone name"
value = aws_efs_mount_target.main.availability_zone_name
output "efs_mount_target_availability_zone_names" {
description = "EFS mount target availability zone names"
value = [ for resource in aws_efs_mount_target.main : resource.availability_zone_name ]
}

output "efs_mount_target_dns_name" {
description = "EFS mount target DNS name"
value = aws_efs_mount_target.main.dns_name
output "efs_mount_target_dns_names" {
description = "EFS mount target DNS names"
value = [ for resource in aws_efs_mount_target.main : resource.dns_name ]
}

output "efs_mount_target_file_system_id" {
description = "EFS mount target file system ID"
value = aws_efs_mount_target.main.file_system_id
output "efs_mount_target_file_system_ids" {
description = "EFS mount target file system IDs"
value = [ for resource in aws_efs_mount_target.main : resource.file_system_id ]
}

output "efs_mount_target_id" {
description = "EFS mount target ID"
value = aws_efs_mount_target.main.id
output "efs_mount_target_ids" {
description = "EFS mount target IDs"
value = [ for resource in aws_efs_mount_target.main : resource.id ]
}

output "efs_mount_target_file_system_arn" {
description = "EFS mount target file system ARN"
value = aws_efs_mount_target.main.file_system_arn
output "efs_mount_target_file_system_arns" {
description = "EFS mount target file system ARNs"
value = [ for resource in aws_efs_mount_target.main : resource.file_system_arn ]
}

output "efs_mount_target_network_interface_id" {
description = "EFS mount target network interface ID"
value = aws_efs_mount_target.main.network_interface_id
output "efs_mount_target_network_interface_ids" {
description = "EFS mount target network interface IDs"
value = [ for resource in aws_efs_mount_target.main : resource.network_interface_id ]
}

output "efs_mount_target_owner_id" {
description = "EFS mount target owner ID"
value = aws_efs_mount_target.main.owner_id
output "efs_mount_target_owner_ids" {
description = "EFS mount target owner IDs"
value = [ for resource in aws_efs_mount_target.main : resource.owner_id ]
}
12 changes: 11 additions & 1 deletion releases/3.0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,14 @@
## [Version 3.0.3] - 2024-07-18

### New Features
- Additions of outputs for export from module
- Additions of outputs for export from module

### Improvements
- Update the default version of EKS to 1.30

### Bug Fixes
- Add missing pod identity logic
- Fix issues with outputs

### Known Issues
- Current cluster name needs to be truncated. Will be addressed in 3.0.4
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ variable "eks_main_node_instance_types" {
variable "eks_main_nodes_max_size" {
description = "The max size of the main EKS node group"
type = number
default = 6
default = 3
}

variable "eks_main_nodes_min_size" {
Expand Down Expand Up @@ -145,7 +145,7 @@ variable "eks_security_group_additional_rules" {
variable "eks_version" {
description = "The version of the EKS cluster"
type = string
default = "1.29"
default = "1.30"
}

variable "node_bootstrap_extra_args" {
Expand Down

0 comments on commit 2293cb5

Please sign in to comment.