generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update code and add tf latest version
- Loading branch information
1 parent
c09c2f8
commit 0a5c65c
Showing
8 changed files
with
64 additions
and
103 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
locals { | ||
name = "app" | ||
environment = "test" | ||
label_order = ["name", "environment"] | ||
} | ||
|
||
##----------------------------------------------------------------------------- | ||
##----------------------------------------------------------------------------- | ||
## Virtual Network module call. | ||
##----------------------------------------------------------------------------- | ||
module "vnet" { | ||
source = "../../" | ||
name = local.name | ||
environment = local.environment | ||
resource_group_name = "app-test" | ||
resource_group_name = "testsg" | ||
location = "NorthEurope" | ||
address_space = "10.0.0.0/16" | ||
enable_network_watcher = false # To be set true when network security group flow logs are to be tracked and network watcher with specific name is to be deployed. | ||
} | ||
enable_network_watcher = false # To be set true when network security group flow logs are to be tracked and network watcher with specific name is to be deployed. | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Terraform version | ||
terraform { | ||
required_version = ">= 1.6.5" | ||
} | ||
|
||
terraform { | ||
required_providers { | ||
azurerm = { | ||
source = "hashicorp/azurerm" | ||
version = ">=3.83.0" | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Terraform version | ||
terraform { | ||
required_version = ">= 1.6.5" | ||
} | ||
|
||
terraform { | ||
required_providers { | ||
azurerm = { | ||
source = "hashicorp/azurerm" | ||
version = ">=3.83.0" | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
output "vnet_id" { | ||
description = "The id of the newly created vNet" | ||
value = azurerm_virtual_network.vnet.*.id | ||
value = azurerm_virtual_network.vnet[*].id | ||
} | ||
|
||
output "vnet_name" { | ||
description = "The name of the newly created vNet" | ||
value = azurerm_virtual_network.vnet.*.name | ||
value = azurerm_virtual_network.vnet[*].name | ||
} | ||
|
||
output "vnet_location" { | ||
description = "The location of the newly created vNet" | ||
value = azurerm_virtual_network.vnet.*.location | ||
value = azurerm_virtual_network.vnet[*].location | ||
} | ||
|
||
output "vnet_address_space" { | ||
description = "The address space of the newly created vNet" | ||
value = azurerm_virtual_network.vnet.*.address_space | ||
value = azurerm_virtual_network.vnet[*].address_space | ||
} | ||
|
||
output "vnet_guid" { | ||
description = "The GUID of the virtual network." | ||
value = azurerm_virtual_network.vnet.*.guid | ||
value = azurerm_virtual_network.vnet[*].guid | ||
} | ||
|
||
output "vnet_rg_name" { | ||
description = "The name of the resource group in which to create the virtual network. Changing this forces a new resource to be created" | ||
value = azurerm_virtual_network.vnet.*.resource_group_name | ||
value = azurerm_virtual_network.vnet[*].resource_group_name | ||
} | ||
|
||
output "ddos_protection_plan_id" { | ||
value = join("", azurerm_network_ddos_protection_plan.example.*.id) | ||
value = join("", azurerm_network_ddos_protection_plan.example[*].id) | ||
description = "The ID of the DDoS Protection Plan" | ||
} | ||
output "network_watcher_id" { | ||
value = join("", azurerm_network_watcher.flow_log_nw.*.id) | ||
value = join("", azurerm_network_watcher.flow_log_nw[*].id) | ||
description = "The ID of the Network Watcher." | ||
} | ||
|
||
output "network_watcher_name" { | ||
value = join("", azurerm_network_watcher.flow_log_nw.*.name) | ||
value = join("", azurerm_network_watcher.flow_log_nw[*].name) | ||
description = "The name of Network Watcher deployed." | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# Terraform version | ||
terraform { | ||
required_version = ">= 1.0.0" | ||
required_version = ">= 1.6.5" | ||
} | ||
|
||
terraform { | ||
required_providers { | ||
azurerm = { | ||
source = "hashicorp/azurerm" | ||
version = ">=2.90.0" | ||
version = ">=3.83.0" | ||
} | ||
} | ||
} |