diff --git a/outputs.tf b/outputs.tf index b210b90..8a5a38d 100644 --- a/outputs.tf +++ b/outputs.tf @@ -5,7 +5,7 @@ output "instance_id" { output "instance_private_ip" { description = "Compute instance private IP" - value = yandex_compute_instance.this.network_interface.0.ip_address + value = yandex_compute_instance.this.network_interface[0].ip_address } output "instance_public_ip" { diff --git a/variables.tf b/variables.tf index 97ee191..3cfcab0 100644 --- a/variables.tf +++ b/variables.tf @@ -103,6 +103,7 @@ variable "serial_port_enable" { variable "docker_compose" { description = "The key in the VM metadata that uses the docker-compose specification" + type = string default = null } @@ -142,21 +143,21 @@ variable "preemptible" { default = false } -variable "placement_group_id" { - description = "Placement group ID" - type = string - default = null -} - -variable "placement_affinity_rules" { - description = "List of host affinity rules" - type = list(object({ - key = string - op = string - value = string - })) - default = [] -} +# variable "placement_group_id" { +# description = "Placement group ID" +# type = string +# default = null +# } +# +# variable "placement_affinity_rules" { +# description = "List of host affinity rules" +# type = list(object({ +# key = string +# op = string +# value = string +# })) +# default = [] +# } # # vm image diff --git a/versions.tf b/versions.tf index 8e44575..f8ef30e 100644 --- a/versions.tf +++ b/versions.tf @@ -1,10 +1,12 @@ terraform { required_providers { yandex = { - source = "yandex-cloud/yandex" + source = "yandex-cloud/yandex" + version = ">= 0.72.0" } tls = { - source = "hashicorp/tls" + source = "hashicorp/tls" + version = ">= 3.1.0" } } required_version = ">= 1.3"