forked from TerraformingCloud/tf-cicd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
74 lines (55 loc) · 1.47 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
#* Root Module *#
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
# Terraform Block
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=2.46.0"
}
}
backend "azurerm" {
resource_group_name = "tfstate"
storage_account_name = "harshastorageaccount"
container_name = "tstate"
key = "terraform.tfstate"
}
}
# Provider Block
provider "azurerm" {
version = "~> 2.0"
client_id = var.client_id
client_secret = var.client_secret
subscription_id = var.subscription_id
tenant_id = var.tenant_id
features {}
}
/*
provider "azuread" {
version = ">= 0.11"
client_id = var.client_id
client_secret = var.client_secret
tenant_id = var.tenant_id
alias = "ad"
}
// module "windows-server" {
// source = "./azure/WindowsServer2019"
// }
// module "winvm" {
// source = "./azure/Windows10-ExistingInfra"
// }
// module "aks" {
// source = "./azure/aks"
// env = "dev"
// }
// module "customrole" {
// source = "./azure/custom-roles"
// }
// module "provisioners" {
// source = "./azure/provisioners-example"
// }
*/
module "linuxvm" {
source = "./azure/linuxVM"
}