forked from yugabyte/terraform-aws-yugabyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
54 lines (45 loc) · 1.19 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
48
49
50
51
52
53
54
#########################################################
#
# Outputs for the YugaByte terraform module.
#
#########################################################
output "ui" {
sensitive = false
value = "http://${aws_instance.yugabyte_nodes.*.public_ip[0]}:7000"
}
output "hostname" {
sensitive = false
value = ["${aws_instance.yugabyte_nodes.*.public_ip}"]
}
output "ip" {
sensitive = false
value = ["${aws_instance.yugabyte_nodes.*.private_ip}"]
}
output "security_group" {
sensitive = false
value = "${aws_security_group.yugabyte.id}"
}
output "ssh_user" {
sensitive = false
value = "${var.ssh_user}"
}
output "ssh_key" {
sensitive = false
value = "${var.ssh_private_key}"
}
output "JDBC" {
sensitive =false
value = "postgresql://postgres@${aws_instance.yugabyte_nodes.*.public_ip[0]}:5433"
}
output "YSQL"{
sensitive = false
value = "psql -U postgres -h ${aws_instance.yugabyte_nodes.*.public_ip[0]} -p 5433"
}
output "YCQL"{
sensitive = false
value = "cqlsh ${aws_instance.yugabyte_nodes.*.public_ip[0]} 9042"
}
output "YEDIS"{
sensitive = false
value = "redis-cli -h ${aws_instance.yugabyte_nodes.*.public_ip[0]} -p 6379"
}