resource "scaleway_ip" "k8s_master_ip" { } resource "scaleway_server" "k8s_master" { name = "k8s_master" image = "${data.scaleway_image.debian.id}" type = "${var.k8s_master_server_type}" public_ip = "${scaleway_ip.k8s_master_ip.ip}" tags = ["k8s", "k8s-master"] depends_on = [ scaleway_ssh_key.trygvis_arius-v4, scaleway_ssh_key.trygvis_birgitte, scaleway_ssh_key.trygvis_akili, scaleway_ssh_key.trygvis_conflatorio, ] } output "k8s_master_ip" { value = scaleway_server.k8s_master.public_ip }