Skip to content

Commit

Permalink
Added "region" variable to control platform defaults (WireGuard (2));
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-k-nebius committed Nov 21, 2024
1 parent b7f9b41 commit 398051a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wireguard/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ resource "nebius_compute_v1_instance" "wireguard_instance" {
]

resources = {
platform = var.platform
preset = var.preset
platform = local.platform
preset = local.preset
}


Expand Down
4 changes: 2 additions & 2 deletions wireguard/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ variable "region" {
variable "platform" {
description = "Platform for WireGuard host."
type = string
default = "cpu-e2"
default = null
}

variable "preset" {
description = "Preset for WireGuard host."
type = string
default = "4vcpu-16gb"
default = null
}

# SSH access
Expand Down

0 comments on commit 398051a

Please sign in to comment.