File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed
examples/virtual-network-with-multi-peering Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ resource "azurerm_resource_group" "rg" {
3
3
location = " West Europe"
4
4
}
5
5
6
-
7
6
resource "azurerm_virtual_network" "vnet1" {
8
7
name = " virtual-network-1"
9
8
resource_group_name = azurerm_resource_group. rg . name
Original file line number Diff line number Diff line change 1
- output peerings {
1
+ output " peerings" {
2
2
value = { for peering in azurerm_virtual_network_peering . peering : peering . name => peering }
3
3
description = " Blocks containing configuration of each peering."
4
- /* module.MODULE_NAME.peering["PEERING_NAME"].id*/
4
+ # module.MODULE_NAME.peering["PEERING_NAME"].id
5
5
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ terraform {
3
3
required_providers {
4
4
azurerm = {
5
5
source = " hashicorp/azurerm"
6
- version = " =2.36 .0"
6
+ version = " =2.0 .0"
7
7
}
8
8
}
9
9
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ terraform {
3
3
required_providers {
4
4
azurerm = {
5
5
source = " hashicorp/azurerm"
6
- version = " =2.36 .0"
6
+ version = " =2.0 .0"
7
7
}
8
8
}
9
9
}
Original file line number Diff line number Diff line change 1
- variable resource_group_name {
1
+ variable " resource_group_name" {
2
2
type = string
3
3
description = " The name of the resource group in which to create the virtual network peering."
4
4
}
5
5
6
- variable virtual_network_name {
6
+ variable " virtual_network_name" {
7
7
type = string
8
8
description = " The full Azure resource ID of the remote virtual network."
9
9
}
10
10
11
- variable peerings {
11
+ variable " peerings" {
12
12
type = list (map (string ))
13
13
description = " List containing the blocks for the configuration of the peerings."
14
14
/*
You can’t perform that action at this time.
0 commit comments