Skip to content

Commit

Permalink
fix: Added basic and complete example folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
13archit committed Jun 15, 2023
1 parent fde9ed6 commit a977c04
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/semantic-releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
paths:
- '**.tf'
- '!examples/**.tf'
- '_example/**.tf'

jobs:
release:
Expand Down
18 changes: 18 additions & 0 deletions _example/basic/example.tf
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.
29 changes: 29 additions & 0 deletions _example/complete/outputs.tf
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
}

0 comments on commit a977c04

Please sign in to comment.