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: Added basic and complete example folder.
- Loading branch information
Showing
5 changed files
with
48 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- main | ||
paths: | ||
- '**.tf' | ||
- '!examples/**.tf' | ||
- '_example/**.tf' | ||
|
||
jobs: | ||
release: | ||
|
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,18 @@ | ||
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 = module.resource_group.resource_group_name | ||
location = module.resource_group.resource_group_location | ||
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. | ||
} |
File renamed without changes.
File renamed without changes.
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,29 @@ | ||
output "vnet_id" { | ||
description = "The id of the newly created vNet" | ||
value = module.vnet.vnet_id | ||
} | ||
|
||
output "vnet_name" { | ||
description = "The name of the newly created vNet" | ||
value = module.vnet.vnet_name | ||
} | ||
|
||
output "vnet_location" { | ||
description = "The location of the newly created vNet" | ||
value = module.vnet.vnet_location | ||
} | ||
|
||
output "vnet_address_space" { | ||
description = "The address space of the newly created vNet" | ||
value = module.vnet.vnet_address_space | ||
} | ||
|
||
output "vnet_guid" { | ||
description = "The GUID of the virtual network." | ||
value = module.vnet.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 = module.vnet.vnet_rg_name | ||
} |