Last active
December 18, 2022 18:13
-
-
Save dustindortch/ffab5d2fa0585ed57fc6d45980504eb3 to your computer and use it in GitHub Desktop.
AzBastion OnDemand Data Resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "azurerm_resource_group" "rg" { | |
name = var.resource_group_name | |
} | |
data "azurerm_virtual_network" "vnet" { | |
name = var.virtual_network_name | |
resource_group_name = data.azurerm_resource_group.rg.name | |
} | |
data "azurerm_subnet" "subnet" { | |
name = "AzureBastionSubnet" | |
resource_group_name = data.azurerm_resource_group.rg.name | |
virtual_network_name = data.azurerm_virtual_network.vnet.name | |
} | |
data "azurerm_public_ip" "pip" { | |
name = var.public_ip_name | |
resource_group_name = data.azurerm_resource_group.rg.name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment