Skip to content

Commit

Permalink
Add vnet to resource ref (#425)
Browse files Browse the repository at this point in the history
* Fix vnet typo in Azure peering example

* Regenerate docs

* Update changelog
  • Loading branch information
dane authored Dec 6, 2022
1 parent 9693e7b commit 1b1b708
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .changelog/425.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```release-note:bug
The example usage for `hcp_azure_peering_connection` was missing the `vnet`
resource reference.
```
2 changes: 1 addition & 1 deletion docs/resources/azure_peering_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "hcp_azure_peering_connection" "peer" {
peer_subscription_id = azurerm_subscription.sub.subscription_id
peer_tenant_id = "<tenant UUID>"
peer_resource_group_name = azurerm_resource_group.rg.name
peer_vnet_region = azurerm_virtual_network.location
peer_vnet_region = azurerm_virtual_network.vnet.location
}
// This data source is the same as the resource above, but waits for the connection to be Active before returning.
Expand Down
4 changes: 2 additions & 2 deletions examples/resources/hcp_azure_peering_connection/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "hcp_azure_peering_connection" "peer" {
peer_subscription_id = azurerm_subscription.sub.subscription_id
peer_tenant_id = "<tenant UUID>"
peer_resource_group_name = azurerm_resource_group.rg.name
peer_vnet_region = azurerm_virtual_network.location
peer_vnet_region = azurerm_virtual_network.vnet.location
}

// This data source is the same as the resource above, but waits for the connection to be Active before returning.
Expand Down Expand Up @@ -80,4 +80,4 @@ resource "azurerm_role_assignment" "assignment" {
principal_id = azuread_service_principal.principal.id
scope = azurerm_virtual_network.vnet.id
role_definition_id = azurerm_role_definition.definition.role_definition_resource_id
}
}

0 comments on commit 1b1b708

Please sign in to comment.