-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
47 lines (39 loc) · 1.55 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
output "region" {
description = "Region resources are provisioned in"
value = var.region
}
output "comet_ec2_instance" {
description = "ID of the Comet EC2 instance"
value = var.enable_ec2 ? module.comet_ec2[0].comet_ec2_instance_id : null
}
output "comet_ec2_public_ip" {
description = "EIP associated with the Comet EC2 instance"
value = var.enable_ec2 ? module.comet_ec2[0].comet_ec2_public_ip : null
}
output "comet_alb_dns_name" {
description = "DNS name of the ALB fronting the Comet EC2 instance"
value = var.enable_ec2_alb ? module.comet_ec2_alb[0].alb_dns_name : null
}
output "mysql_host" {
description = "Endpoint for the RDS instance"
value = var.enable_rds ? module.comet_rds[0].mysql_host : null
}
output "configure_kubectl" {
description = "Configure kubectl: run the following command to update your kubeconfig with the newly provisioned cluster."
value = var.enable_eks ? "aws eks update-kubeconfig --region ${var.region} --name ${module.comet_eks[0].cluster_name}" : null
}
output "comet_eks_cert" {
description = "EKS cluster cert"
value = var.enable_eks ? base64decode(module.comet_eks[0].cluster_certificate_authority_data) : null
sensitive = true
}
output "comet_eks_endpoint" {
description = "EKS cluster endpoint"
value = var.enable_eks ? module.comet_eks[0].cluster_endpoint : null
sensitive = true
}
output "comet_eks_token" {
description = "EKS cluster endpoint"
value = var.enable_eks ? data.aws_eks_cluster_auth.this[0].token : null
sensitive = true
}