Skip to content

Commit

Permalink
delete old app service plans
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm committed Nov 7, 2023
1 parent 2c85734 commit 31d7679
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 40 deletions.
8 changes: 0 additions & 8 deletions modules/cms/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ resource "azurerm_postgresql_database" "tikweb_cms_db" {
collation = "fi-FI"
}

resource "azurerm_service_plan" "tikweb_plan" {
name = "tikweb-${var.env_name}-plan"
location = var.resource_group_location
resource_group_name = var.resource_group_name

os_type = "Linux"
sku_name = "B1"
}

resource "azurerm_linux_web_app" "tikweb_cms" {
name = "tikweb-${var.env_name}-app-cms"
Expand Down
10 changes: 0 additions & 10 deletions modules/common/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,6 @@ resource "azurerm_postgresql_firewall_rule" "tikweb_pg_internal_access" {
end_ip_address = "0.0.0.0"
}

# Shared App Service Plan for auxiliary services
resource "azurerm_service_plan" "aux_plan" {
name = "tik-aux-${var.env_name}-plan"
location = azurerm_resource_group.tikweb_rg.location
resource_group_name = azurerm_resource_group.tikweb_rg.name

os_type = "Linux"
sku_name = "B1"
}

# Shared App Service Plan
resource "azurerm_service_plan" "tikweb_plan" {
name = "tik-${var.env_name}-app-service-plan"
Expand Down
4 changes: 0 additions & 4 deletions modules/common/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ output "postgres_admin_password" {
sensitive = true
}

output "aux_app_plan_id" {
value = azurerm_service_plan.aux_plan.id
}

output "tikweb_app_plan_id" {
value = azurerm_service_plan.tikweb_plan.id
}
Expand Down
9 changes: 0 additions & 9 deletions modules/ilmo/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ resource "azurerm_postgresql_database" "ilmo_db" {
collation = "fi-FI"
}

resource "azurerm_service_plan" "ilmo_backend_plan" {
name = "tik-ilmo-${var.env_name}-plan"
location = var.resource_group_location
resource_group_name = var.resource_group_name

os_type = "Linux"
sku_name = "B1"
}

resource "azurerm_linux_web_app" "ilmo_backend" {
name = "tik-ilmo-${var.env_name}-app"
location = var.tikweb_rg_location
Expand Down
9 changes: 0 additions & 9 deletions modules/recruiting/ghost/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ locals {
fqdn = "${var.subdomain}.${var.root_zone_name}"
}

resource "azurerm_service_plan" "tikjob_plan" {
name = "tikjob-${var.env_name}-plan"
location = var.resource_group_location
resource_group_name = var.resource_group_name

os_type = "Linux"
sku_name = "B1"
}

resource "azurerm_linux_web_app" "tikjob_ghost" {
name = "tikjob-${var.env_name}-app-ghost"
location = var.tikweb_rg_location
Expand Down

0 comments on commit 31d7679

Please sign in to comment.