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