-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.tf
37 lines (34 loc) · 921 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
37
# Pin the Azure provider version
terraform {
required_providers {
azurerm = {
version = "=1.44.0"
}
}
}
resource "azurerm_resource_group" "arcade" {
name = "${var.prefix}-containerapp-demo"
location = var.location
tags = {
environment = "Production"
DoNotDelete = "True"
}
}
# Utilize the web_app_container module from the public registry.
module "web_app_container" {
source = "innovationnorway/web-app-container/azurerm"
version = "2.6.0"
name = var.prefix
port = "80"
plan = {
sku_size = var.sku_size
}
https_only = var.https_only
resource_group_name = azurerm_resource_group.arcade.name
container_type = "docker"
container_image = var.image
depends_on = [azurerm_resource_group.arcade]
}
output "container_app_url" {
value = "https://${module.web_app_container.hostname}"
}