2017-03-02 01:25:58 +08:00
|
|
|
output "bastion_ip" {
|
2020-06-05 15:05:43 +08:00
|
|
|
value = join("\n", aws_instance.bastion-server.*.public_ip)
|
2017-03-02 01:25:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
output "masters" {
|
2020-06-05 15:05:43 +08:00
|
|
|
value = join("\n", aws_instance.k8s-master.*.private_ip)
|
2017-03-02 01:25:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
output "workers" {
|
2020-06-05 15:05:43 +08:00
|
|
|
value = join("\n", aws_instance.k8s-worker.*.private_ip)
|
2017-03-02 01:25:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
output "etcd" {
|
2021-07-23 17:43:16 +08:00
|
|
|
value = join("\n", ((var.aws_etcd_num > 0) ? (aws_instance.k8s-etcd.*.private_ip) : (aws_instance.k8s-master.*.private_ip)))
|
2017-03-02 01:25:58 +08:00
|
|
|
}
|
|
|
|
|
2022-02-25 15:53:54 +08:00
|
|
|
output "aws_nlb_api_fqdn" {
|
|
|
|
value = "${module.aws-nlb.aws_nlb_api_fqdn}:${var.aws_nlb_api_port}"
|
2017-03-02 01:25:58 +08:00
|
|
|
}
|
2017-04-12 21:11:39 +08:00
|
|
|
|
|
|
|
output "inventory" {
|
2020-06-05 15:05:43 +08:00
|
|
|
value = data.template_file.inventory.rendered
|
2017-04-12 21:11:39 +08:00
|
|
|
}
|
2017-10-18 18:44:32 +08:00
|
|
|
|
|
|
|
output "default_tags" {
|
2020-06-05 15:05:43 +08:00
|
|
|
value = var.default_tags
|
2018-01-07 23:39:58 +08:00
|
|
|
}
|