-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tf
More file actions
33 lines (28 loc) · 755 Bytes
/
main.tf
File metadata and controls
33 lines (28 loc) · 755 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
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.0.2"
}
}
required_version = ">= 1.1.0"
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "main" {
name = var.resource_group_name
location = var.location
}
module "aks" {
source = "./modules/aks"
resource_group_name = azurerm_resource_group.main.name
location = azurerm_resource_group.main.location
aks_cluster_name = var.aks_cluster_name
}
module "keyvault" {
source = "./modules/keyvault"
resource_group_name = azurerm_resource_group.main.name
location = azurerm_resource_group.main.location
key_vault_name = var.key_vault_name
}