Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions deploy/Terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy/Terraform/billing-alert.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource "azurerm_consumption_budget_subscription" "evently_budget" {
time_grain = "Monthly"

time_period {
start_date = "2025-09-01T00:00:00Z"
start_date = formatdate("YYYY-MM-01'T'00:00:00Z", plantimestamp())
}

notification {
Expand Down
2 changes: 2 additions & 0 deletions deploy/Terraform/container-app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ resource "azurerm_container_app" "app" {
server = azurerm_container_registry.acr.login_server
identity = azurerm_user_assigned_identity.uami.id
}

depends_on = [azurerm_role_assignment.acr_pull, azurerm_mssql_database.db]

# needed for container app to access other Microsoft Entra protected resources
# https://learn.microsoft.com/en-us/azure/container-apps/managed-identity?tabs=portal%2Cdotnet
Expand Down
11 changes: 7 additions & 4 deletions deploy/Terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ terraform {
source = "hashicorp/azurerm"
version = "4.45.0"
}
docker = {
source = "kreuzwerker/docker"
version = "3.0.2"
}
}

backend "azurerm" {
resource_group_name = "rg-sharedinfra-sea" # Resource group for the storage account
storage_account_name = "sasharedinfrasea"
container_name = "evently-dev-sea"
key = "tfstate/terraform.tfstate"
}
}

Expand Down
8 changes: 4 additions & 4 deletions deploy/Terraform/sql-database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ resource "azurerm_mssql_server" "sql_server" {
}

resource "azurerm_mssql_database" "db" {
name = "evently"
server_id = azurerm_mssql_server.sql_server.id
sku_name = "Basic" # Cheapest option: 5 DTUs
max_size_gb = 2 # Minimum size for Basic tier
name = "evently"
server_id = azurerm_mssql_server.sql_server.id
sku_name = "Basic" # Cheapest option: 5 DTUs
max_size_gb = 2 # Minimum size for Basic tier
}

resource "azurerm_mssql_firewall_rule" "allow_azure_services" {
Expand Down