outputs.tf 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. ################################################################################
  2. # Cluster
  3. ################################################################################
  4. output "cluster_arn" {
  5. description = "The Amazon Resource Name (ARN) of the cluster"
  6. value = module.eks.cluster_arn
  7. }
  8. output "cluster_certificate_authority_data" {
  9. description = "Base64 encoded certificate data required to communicate with the cluster"
  10. value = module.eks.cluster_certificate_authority_data
  11. }
  12. output "cluster_endpoint" {
  13. description = "Endpoint for your Kubernetes API server"
  14. value = module.eks.cluster_endpoint
  15. }
  16. output "cluster_id" {
  17. description = "The name/id of the EKS cluster. Will block on cluster creation until the cluster is really ready"
  18. value = module.eks.cluster_id
  19. }
  20. output "cluster_oidc_issuer_url" {
  21. description = "The URL on the EKS cluster for the OpenID Connect identity provider"
  22. value = module.eks.cluster_oidc_issuer_url
  23. }
  24. output "cluster_platform_version" {
  25. description = "Platform version for the cluster"
  26. value = module.eks.cluster_platform_version
  27. }
  28. output "cluster_status" {
  29. description = "Status of the EKS cluster. One of `CREATING`, `ACTIVE`, `DELETING`, `FAILED`"
  30. value = module.eks.cluster_status
  31. }
  32. output "cluster_security_group_id" {
  33. description = "Cluster security group that was created by Amazon EKS for the cluster. Managed node groups use this security group for control-plane-to-data-plane communication. Referred to as 'Cluster security group' in the EKS console"
  34. value = module.eks.cluster_security_group_id
  35. }
  36. ################################################################################
  37. # Security Group
  38. ################################################################################
  39. output "cluster_security_group_arn" {
  40. description = "Amazon Resource Name (ARN) of the cluster security group"
  41. value = module.eks.cluster_security_group_arn
  42. }
  43. ################################################################################
  44. # IRSA
  45. ################################################################################
  46. output "oidc_provider_arn" {
  47. description = "The ARN of the OIDC Provider if `enable_irsa = true`"
  48. value = module.eks.oidc_provider_arn
  49. }
  50. ################################################################################
  51. # IAM Role
  52. ################################################################################
  53. output "cluster_iam_role_name" {
  54. description = "IAM role name of the EKS cluster"
  55. value = module.eks.cluster_iam_role_name
  56. }
  57. output "cluster_iam_role_arn" {
  58. description = "IAM role ARN of the EKS cluster"
  59. value = module.eks.cluster_iam_role_arn
  60. }
  61. output "cluster_iam_role_unique_id" {
  62. description = "Stable and unique string identifying the IAM role"
  63. value = module.eks.cluster_iam_role_unique_id
  64. }
  65. ################################################################################
  66. # EKS Addons
  67. ################################################################################
  68. output "cluster_addons" {
  69. description = "Map of attribute maps for all EKS cluster addons enabled"
  70. value = module.eks.cluster_addons
  71. }
  72. ################################################################################
  73. # EKS Identity Provider
  74. ################################################################################
  75. output "cluster_identity_providers" {
  76. description = "Map of attribute maps for all EKS identity providers enabled"
  77. value = module.eks.cluster_identity_providers
  78. }
  79. ################################################################################
  80. # CloudWatch Log Group
  81. ################################################################################
  82. output "cloudwatch_log_group_name" {
  83. description = "Name of cloudwatch log group created"
  84. value = module.eks.cloudwatch_log_group_name
  85. }
  86. output "cloudwatch_log_group_arn" {
  87. description = "Arn of cloudwatch log group created"
  88. value = module.eks.cloudwatch_log_group_arn
  89. }
  90. ################################################################################
  91. # Fargate Profile
  92. ################################################################################
  93. output "fargate_profiles" {
  94. description = "Map of attribute maps for all EKS Fargate Profiles created"
  95. value = module.eks.fargate_profiles
  96. }
  97. ################################################################################
  98. # Additional
  99. ################################################################################
  100. output "aws_auth_configmap_yaml" {
  101. description = "Formatted yaml output for base aws-auth configmap containing roles used in cluster node groups/fargate profiles"
  102. value = module.eks.aws_auth_configmap_yaml
  103. }
  104. output "eks_cluster_auth_token" {
  105. value = data.aws_eks_cluster_auth.this.token
  106. sensitive = true
  107. }