-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
54 lines (41 loc) · 948 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
48
49
50
51
52
53
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "2.88.1"
}
}
}
provider "azurerm" {
features {
}
}
module "ResourceGroup" {
source = "./ResourceGroup"
name = "myrgmodule"
location = "West Europe"
//tags= "Production"
}
module "VirtualNetwork" {
source = "./VirtualNetwork"
name = "myAKSvn"
resource = module.ResourceGroup.resoure_group_out
location="West Europe"
address_space= ["10.0.0.0/12"]
}
module "subnet" {
source = "./subnet"
subnet_name = "myAKSsubnet"
resource_group_name = module.ResourceGroup.resoure_group_out
address_prefix= ["10.1.0.0/16"]
VN_name= module.VirtualNetwork.myvnet
rt_name = "myrtname"
location= "West Europe"
}
module "AKS" {
source = "./AKS"
AKS_name = "myAKS"
location="West Europe"
resource_group_name = module.ResourceGroup.resoure_group_out
vnet_subnet_id = module.subnet.id
}