From 61d7704021075534ce2d79feb24e40db93e9f4a3 Mon Sep 17 00:00:00 2001 From: Giampiero Ferrara Date: Mon, 7 Oct 2024 15:43:55 +0200 Subject: [PATCH] Added prod config for opex --- .../env/prod/backend.ini | 1 + .../env/prod/backend.tfvars | 4 + .../env/prod/config.yaml | 126 ++++++++++++++++++ .../env/prod/terraform.tfvars | 11 ++ 4 files changed, 142 insertions(+) create mode 100644 .opex/api-selfcare-party-registry-proxy/env/prod/backend.ini create mode 100644 .opex/api-selfcare-party-registry-proxy/env/prod/backend.tfvars create mode 100644 .opex/api-selfcare-party-registry-proxy/env/prod/config.yaml create mode 100644 .opex/api-selfcare-party-registry-proxy/env/prod/terraform.tfvars diff --git a/.opex/api-selfcare-party-registry-proxy/env/prod/backend.ini b/.opex/api-selfcare-party-registry-proxy/env/prod/backend.ini new file mode 100644 index 00000000..dc3318a8 --- /dev/null +++ b/.opex/api-selfcare-party-registry-proxy/env/prod/backend.ini @@ -0,0 +1 @@ +subscription=PROD-SelfCare diff --git a/.opex/api-selfcare-party-registry-proxy/env/prod/backend.tfvars b/.opex/api-selfcare-party-registry-proxy/env/prod/backend.tfvars new file mode 100644 index 00000000..69cec3d4 --- /dev/null +++ b/.opex/api-selfcare-party-registry-proxy/env/prod/backend.tfvars @@ -0,0 +1,4 @@ +resource_group_name = "terraform-state-rg" +storage_account_name = "tfappprodselfcare" +container_name = "terraform-state" +key = "opex.ms-party-registry-proxy.tfstate" diff --git a/.opex/api-selfcare-party-registry-proxy/env/prod/config.yaml b/.opex/api-selfcare-party-registry-proxy/env/prod/config.yaml new file mode 100644 index 00000000..79b04eef --- /dev/null +++ b/.opex/api-selfcare-party-registry-proxy/env/prod/config.yaml @@ -0,0 +1,126 @@ +oa3_spec: app/src/main/resources/swagger/api-docs.json +name: opex_api-ms-party-registry-proxy +location: West Europe +timespan: 30m # Default, a number or a timespan https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/timespan +data_source: /subscriptions/813119d7-0943-46ed-8ebe-cebe24f9106c/resourceGroups/selc-p-vnet-rg/providers/Microsoft.Network/applicationGateways/selc-p-app-gw +action_groups: + - /subscriptions/813119d7-0943-46ed-8ebe-cebe24f9106c/resourceGroups/selc-p-monitor-rg/providers/microsoft.insights/actionGroups/PagoPA + - /subscriptions/813119d7-0943-46ed-8ebe-cebe24f9106c/resourceGroups/selc-p-monitor-rg/providers/microsoft.insights/actionGroups/SlackPagoPA +overrides: + hosts: # Use these hosts instead of those inside the OpenApi spec + - api.selfcare.pagopa.it + endpoints: + /aoo: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /aoo/{codiceUniAoo}: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /categories: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /geotaxonomies: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /geotaxonomies/{geotaxId}: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /info-camere/institutions: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /infocamere-pdnd/institution/{taxCode}: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /institutions: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /institutions/{id}: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /insurance-companies: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /insurance-companies/{taxId}: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /insurance-companies/origin/{originId}: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /national-registries/legal-address: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /national-registries/verify-legal: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /origins/{origin}/categories/{code}: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /stations: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /stations/{taxId}: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /uo: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 + /uo/{codiceUniUo}: + response_time_threshold: 100 # Default: 1 + response_time_evaluation_frequency: 10 # Default: 10 + response_time_evaluation_time_window: 30 # Default: 20 + response_time_event_occurrences: 30 # Default: + availability_threshold: 0.8 \ No newline at end of file diff --git a/.opex/api-selfcare-party-registry-proxy/env/prod/terraform.tfvars b/.opex/api-selfcare-party-registry-proxy/env/prod/terraform.tfvars new file mode 100644 index 00000000..8c4246af --- /dev/null +++ b/.opex/api-selfcare-party-registry-proxy/env/prod/terraform.tfvars @@ -0,0 +1,11 @@ +prefix = "selc" +env = "prod" +env_short = "p" + +tags = { + CreatedBy = "Terraform" + Environment = "Prod" + Owner = "SelfCare" + Source = "https://github.com/pagopa/selfcare-ms-party-registry-proxy" + CostCenter = "TS310 - PAGAMENTI & SERVIZI" +}