-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
36 lines (30 loc) · 948 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
36
provider "azurerm" {
# whilst the `version` attribute is optional, we recommend pinning to a given version of the Provider
version = "~> 1.42"
client_id = var.clientId
subscription_id = var.subscriptionId
tenant_id = var.tenantId
client_secret = var.clientSecret
}
resource "azurerm_resource_group" "rg" {
name = var.resourceGroupName
location = var.location
}
resource "azurerm_app_service_plan" "app_plan" {
name = var.appServicePlanName
location = var.location
resource_group_name = azurerm_resource_group.rg.name
sku {
tier = "Standard"
size = "S1"
}
}
resource "azurerm_app_service" "app_service" {
name = var.appServiceName
location = var.location
resource_group_name = azurerm_resource_group.rg.name
app_service_plan_id = azurerm_app_service_plan.app_plan.id
app_settings = {
"SOME_KEY" = "some-value"
}
}