-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
32 lines (27 loc) · 1.32 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
output "_01_region" {
description = "AWS region"
value = var.region
}
output "_02_eks_cluster_endpoint" {
description = "Endpoint for EKS control plane"
value = module.eks.cluster_endpoint
}
output "_03_eks_cluster_name" {
description = "Kubernetes Cluster Name"
value = module.eks.cluster_name
}
output "_04_resources_tag" {
description = "The common tag applied on all resources"
value = "Group: ${var.common_tag}"
}
# Output the command to configure kubectl config to the newly created EKS cluster
output "_05_setting_cluster_kubectl_context" {
description = "Connect kubectl to Kubernetes Cluster"
value = "aws eks --region ${var.region} update-kubeconfig --name ${module.eks.cluster_name}"
}
# Output the command to install Artifactory with Helm
# TODO: Fix Xray sizing breaking the template
output "_06_jfrog_platform_install_command" {
description = "The Helm command to install the JFrog Platform (after setting up kubectl context)"
value = "helm upgrade --install jfrog jfrog/jfrog-platform --version ${var.jfrog_platform_chart_version} --namespace ${var.namespace} --create-namespace -f ${path.module}/jfrog-values.yaml -f ${path.module}/artifactory-license.yaml -f ${path.module}/jfrog-artifactory-${var.sizing}-adjusted.yaml -f ${path.module}/jfrog-custom.yaml --timeout 600s"
}