Skip to content

Instantly share code, notes, and snippets.

@dustindortch
Created December 18, 2022 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustindortch/72e179eb9defdd314a911f95027dc384 to your computer and use it in GitHub Desktop.
Save dustindortch/72e179eb9defdd314a911f95027dc384 to your computer and use it in GitHub Desktop.
resource "azurerm_bastion_host" "bastion" {
name = var.bastion_host_name
location = data.azurerm_resource_group.rg.location
resource_group_name = data.azurerm_resource_group.rg.name
ip_configuration {
name = "ip_configuration"
subnet_id = data.azurerm_subnet.subnet.id
public_ip_address_id = data.azurerm_public_ip.pip.id
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment