Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CES-509] Reduced sku, removed autoscaler and slot for eucovidcert function #1358

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
106 changes: 0 additions & 106 deletions src/domains/eucovidcert/_modules/function_apps/autoscalers.tf

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module "function_eucovidcert" {

app_service_plan_info = {
kind = "Linux"
sku_size = "P1v3"
sku_size = "B1"
maximum_elastic_worker_count = 0
worker_count = null
zone_balancing_enabled = false
Expand Down Expand Up @@ -46,42 +46,3 @@ module "function_eucovidcert" {
tags = var.tags
}

module "function_eucovidcert_staging_slot" {
source = "github.com/pagopa/terraform-azurerm-v3//function_app_slot?ref=v7.69.1"

name = "staging"
location = var.location
resource_group_name = var.resource_group_name
function_app_id = module.function_eucovidcert.id
app_service_plan_id = module.function_eucovidcert.app_service_plan_id
health_check_path = "/api/v1/info"

storage_account_name = module.function_eucovidcert.storage_account.name
storage_account_access_key = module.function_eucovidcert.storage_account.primary_access_key

node_version = "14"
always_on = "true"
runtime_version = "~4"
application_insights_instrumentation_key = data.azurerm_application_insights.application_insights.instrumentation_key

app_settings = merge(
local.function_eucovidcert.app_settings,
{
"AzureWebJobs.NotifyNewProfileToDGC.Disabled" = "1"
}
)

subnet_id = var.subnet_id

allowed_subnets = [
data.azurerm_subnet.snet_azdoa.id,
var.subnet_id,
data.azurerm_subnet.snet_backendl1.id,
data.azurerm_subnet.snet_backendl2.id,
data.azurerm_subnet.snet_apim_v2.id,
data.azurerm_subnet.snet_backendl3.id,
data.azurerm_subnet.apim_itn_snet.id
]

tags = var.tags
}
Loading