-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
50 lines (40 loc) · 967 Bytes
/
main.tf
File metadata and controls
50 lines (40 loc) · 967 Bytes
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
# Configure the Azure provider
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.0.2"
}
}
backend "azurerm" {
resource_group_name = "rg_automation_tf"
storage_account_name = "tfstateciabparentco"
container_name = "tfstate"
key = "terraform.tfstate"
}
required_version = ">= 1.1.0"
}
provider "azurerm" {
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}
module "mgmt_group" {
source = "./modules/management-group"
}
module "resource_group" {
source = "./modules/resource-group"
}
module "virtual_network" {
source = "./modules/virtual-network"
}
module "virtual_machine" {
source = "./modules/virtual-machine"
iamsubnet_id = module.virtual_network.iamsubnet_id
}
module "vm_endpoint" {
source = "./modules/vm-endpoint"
appsubnet_id = module.virtual_network.appsubnet_id
}