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 ${aws_lb.tidb_lb.dns_name} -P 4000 -u root"
}

output "tidb_dashboard_url" {
  description = "url to tidb dashboard"
  value       = "http://${aws_instance.pd[0].public_dns}:2379/dashboard"
}

output "tidb_grafana_url" {
  description = "url to tidb grafana"
  value       = "http://${aws_instance.pd[0].public_dns}:3000"
}
