Created
September 25, 2019 16:05
-
-
Save raykao/c98cb611f13d6a652dbc3b7eaa0111bf to your computer and use it in GitHub Desktop.
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
module "subnet" { | |
source = "./subnet_module.tf" | |
} | |
resource "azurerm_virtual_machine" "some_name" { | |
... | |
depends_on = module.subnet | |
subnet_id = module.subnet.id | |
} |
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
resource "azurerm_subnet" "default" { | |
... | |
# https://www.terraform.io/docs/providers/azurerm/r/subnet.html | |
} | |
output "id" { | |
value = azurerm.subnet.id | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment