output "jump_ssh_login" {
  description = "ssh login command of the jump server"
  value       = "ssh -i ${path.cwd}/${local_file.private_key.filename} centos@${aws_instance.jump.public_ip}"
}

output "mysql_command" {
  description = "mysql command used to connect to tidb on the jump server"
  value       = "mysql -h ${data.aws_lb.tidb.dns_name} -P 4000 -u root"
}

output "tidb_dashboard_url" {
  description = "url to tidb dashboard"
  value       = "http://${data.aws_lb.dashboard.dns_name}/dashboard"
}

output "tidb_grafana_url" {
 description = "url to tidb grafana"
 value       = "http://${data.aws_lb.grafana.dns_name}:3000"
}
