1
- resource "azurerm_container_app_environment" "lissi_eventplanner " {
1
+ resource "azurerm_container_app_environment" "eventplanner " {
2
2
name = " cae-${ local . stack } "
3
- location = azurerm_resource_group. lissi_eventplanner . location
4
- resource_group_name = azurerm_resource_group. lissi_eventplanner . name
5
- log_analytics_workspace_id = azurerm_log_analytics_workspace. lissi_eventplanner . id
3
+ location = azurerm_resource_group. eventplanner . location
4
+ resource_group_name = azurerm_resource_group. eventplanner . name
5
+ log_analytics_workspace_id = azurerm_log_analytics_workspace. eventplanner . id
6
6
tags = local. default_tags
7
7
}
8
8
9
- resource "azurerm_container_app" "lissi_eventplanner " {
9
+ resource "azurerm_container_app" "eventplanner " {
10
10
name = " ca-${ local . stack } "
11
- container_app_environment_id = azurerm_container_app_environment. lissi_eventplanner . id
12
- resource_group_name = azurerm_resource_group. lissi_eventplanner . name
11
+ container_app_environment_id = azurerm_container_app_environment. eventplanner . id
12
+ resource_group_name = azurerm_resource_group. eventplanner . name
13
13
revision_mode = " Single"
14
14
tags = local. default_tags
15
15
@@ -33,18 +33,32 @@ resource "azurerm_container_app" "lissi_eventplanner" {
33
33
lifecycle {
34
34
// Required to not delete the manually created custom domain since it is not possible to create a managed certificate for a custom domain with terraform
35
35
// https://github.com/hashicorp/terraform-provider-azurerm/issues/21866
36
- ignore_changes = [" ingress" ]
36
+ ignore_changes = [
37
+ # ingress
38
+ ]
37
39
}
38
40
39
41
template {
40
42
min_replicas = 1
41
43
max_replicas = 1
42
44
45
+ volume {
46
+ name = " vol-eventplanner"
47
+ storage_name = azurerm_container_app_environment_storage. eventplanner . name
48
+ storage_type = " AzureFile"
49
+ }
50
+
43
51
container {
44
52
name = " eventplanner"
45
53
image = " ghcr.io/grossherzogin-elisabeth/eventplanner:main"
46
- cpu = 0.5
47
- memory = " 1Gi"
54
+ cpu = 1.0
55
+ memory = " 2Gi"
56
+
57
+ volume_mounts {
58
+ name = " vol-eventplanner"
59
+ path = " /app/data"
60
+ }
61
+
48
62
env {
49
63
name = " AUTH_ISSUER_URI"
50
64
value = " https://login.microsoftonline.com/63384ddf-6496-44bd-b22c-93e944e6ed88/v2.0"
0 commit comments