-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
42 lines (35 loc) · 967 Bytes
/
main.tf
File metadata and controls
42 lines (35 loc) · 967 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
34
35
36
37
38
39
40
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 1.0.0"
}
}
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "rg-dhbw-devops" {
name = "rg-dhbw-devops"
location = var.region
}
resource "azurerm_service_plan" "app-service-plan" {
name = "plan-dhbw"
resource_group_name = azurerm_resource_group.rg-dhbw-devops.name
location = azurerm_resource_group.rg-dhbw-devops.location
sku_name = "F1"
os_type = "Linux"
}
resource "azurerm_linux_web_app" "app" {
name = "app-dhbw-devops"
resource_group_name = azurerm_resource_group.rg-dhbw-devops.name
location = azurerm_resource_group.rg-dhbw-devops.location
service_plan_id = azurerm_service_plan.app-service-plan.id
site_config {
always_on = false
application_stack {
docker_image = "carrawao/devops-devops"
docker_image_tag = "latest"
}
}
}