-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.tf
35 lines (30 loc) · 1005 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
provider "azurerm" {
skip_provider_registration = true
features {}
}
terraform {
backend "azurerm" {
# values should be passed as command-line arguments
# https://www.terraform.io/docs/backends/config.html#backend-configuration-file
resource_group_name = "[value from command-line arg]"
storage_account_name = "[value from command-line arg]"
container_name = "[value from command-line arg]"
key = "[value from command-line arg]"
}
}
data "azurerm_resource_group" "rg" {
name = var.resource_group_name
}
module "app-service-plan" {
source = "/our/terraform/azure/modules/app-service-plan"
resource_group_name = var.resource_group_name
plan_name = var.plan_name
plan_kind = var.plan_kind
plan_is_reserved = var.plan_is_reserved
plan_sku_tier = var.plan_sku_tier
plan_sku_size = var.plan_sku_size
tags = var.tags
}
output "app-service-plan" {
value = module.app-service-plan
}