-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
47 lines (33 loc) · 826 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
provider "azurerm" {
version = "2.0.0"
features {}
}
terraform {
backend "azurerm" {
resource_group_name = "VYDND"
storage_account_name = "terraformbackend742"
container_name = "terraformstatefiles"
key = "terraform.state"
}
}
resource "azurerm_resource_group" "RG" {
name = "VYDND-RG-Terra"
location = "West Europe"
tags = {
Name = "VYDND"
environment = "Test"
}
}
module "network" {
source = "./Azure/network"
vNetRg = azurerm_resource_group.RG.name
vNetName = "VYDNDCICDVnet"
vNetLocation = azurerm_resource_group.RG.location
vNetAddressSpace = ["10.0.0.0/16"]
subnet1Address = "10.0.1.0/24"
subnet1 = "subnet1"
vNetTags = {
Name = "VYDND1"
environment = "Test"
}
}