Skip to content

Commit

Permalink
create outputs.tf, fix tflint
Browse files Browse the repository at this point in the history
  • Loading branch information
patsevanton committed Jul 23, 2024
1 parent d0ccb56 commit 012bd66
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
31 changes: 16 additions & 15 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 012bd66

Please sign in to comment.