-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tf
48 lines (40 loc) · 1.16 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
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=2.46.0"
}
}
backend "azurerm" {}
}
provider "azurerm" {
skip_provider_registration = true
features {}
}
data "azurerm_client_config" "current" {}
resource "azurerm_resource_group" "rg" {
name = var.resource_group_name
location = var.location
}
resource "azurerm_app_service_plan" "nodejs_service_plan" {
name = var.app_service_plan_name
location = var.location
resource_group_name = azurerm_resource_group.rg.name
sku {
tier = "Free"
size = "F1"
}
}
resource "azurerm_app_service" "nodejs_app_service" {
name = var.app_service_name
location = var.location
resource_group_name = azurerm_resource_group.rg.name
app_service_plan_id = azurerm_app_service_plan.nodejs_service_plan.id
}
# resource "azurerm_storage_account" "app-data" {
# name = var.storage_account_name
# resource_group_name = azurerm_resource_group.rg.name
# location = var.location
# account_tier = "Standard"
# account_replication_type = "LRS"
# }