Skip to content

Commit

Permalink
Allow terraforming without setting an ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
Joé Dupuis authored and Joé Dupuis committed Feb 22, 2025
1 parent 73b6eab commit f047189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ provider "azurerm" {
}

locals {
public_ssh_key = var.ssh_key != "" ? var.ssh_key : file("~/.ssh/id_rsa.pub")
public_ssh_key = var.create_vm && var.ssh_key == "" ? file("~/.ssh/id_rsa.pub") : var.ssh_key
}

resource "azurerm_resource_group" "main" {
Expand Down

0 comments on commit f047189

Please sign in to comment.