Skip to content

Commit

Permalink
edited tf versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Houssem Dellai committed Jan 7, 2024
1 parent e041263 commit 67da6cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ module "bastion" {
resource_group_name = azurerm_resource_group.rg-hub.name
location = azurerm_resource_group.rg-hub.location
subnet_id = azurerm_subnet.subnet-bastion.id
}
}
2 changes: 1 addition & 1 deletion 620_nat_gateway/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ output "pip-nat-gateway" {
}

output "ssh-bastion" {
value = "az network bastion ssh -n ${azurerm_bastion_host.bastion.name} -g ${azurerm_bastion_host.bastion.resource_group_name} --target-resource-id ${azurerm_linux_virtual_machine.vm.id} --auth-type ssh --username azureuser"
value = "az network bastion ssh -n ${try(azurerm_bastion_host.bastion.name, "<bastion host name>")} -g ${try(azurerm_bastion_host.bastion.resource_group_name, "<bastion resource group>")} --target-resource-id ${try(azurerm_linux_virtual_machine.vm.id, "<virtual machine id>")} --auth-type ssh --username azureuser"
}

0 comments on commit 67da6cf

Please sign in to comment.