diff --git a/.github/workflows/create_dashboard.yaml b/.github/workflows/create_dashboard.yaml index 20b38667..5818d785 100644 --- a/.github/workflows/create_dashboard.yaml +++ b/.github/workflows/create_dashboard.yaml @@ -26,7 +26,7 @@ jobs: strategy: matrix: environment: [prod] - product: [internal, node] + product: [internal, node, internal_apim_v2, node_apim_v2] version: [v1, v2] max-parallel: 1 environment: diff --git a/.opex/internal_apim_v2/v1/env/prod/backend.ini b/.opex/internal_apim_v2/v1/env/prod/backend.ini new file mode 100644 index 00000000..63184253 --- /dev/null +++ b/.opex/internal_apim_v2/v1/env/prod/backend.ini @@ -0,0 +1 @@ +subscription=PROD-pagoPA diff --git a/.opex/internal_apim_v2/v1/env/prod/backend.tfvars b/.opex/internal_apim_v2/v1/env/prod/backend.tfvars new file mode 100644 index 00000000..2fe4db14 --- /dev/null +++ b/.opex/internal_apim_v2/v1/env/prod/backend.tfvars @@ -0,0 +1,4 @@ +resource_group_name = "io-infra-rg" +storage_account_name = "pagopainfraterraformprod" +container_name = "azurermstate" +key = "opex.pagopa-afm-calculator-apimv2.terraform.tfstate" diff --git a/.opex/internal_apim_v2/v1/env/prod/config.yaml b/.opex/internal_apim_v2/v1/env/prod/config.yaml new file mode 100644 index 00000000..a612671e --- /dev/null +++ b/.opex/internal_apim_v2/v1/env/prod/config.yaml @@ -0,0 +1,14 @@ +oa3_spec: ./openapi/openapi-v1.json # If start with http the file would be downloaded from the internet +name: opex_pagopa-afm-calculator-v1-apimv2 +location: West Europe +timespan: 5m # Default, a number or a timespan https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/timespan +# data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-vnet-rg/providers/Microsoft.Network/applicationGateways/pagopa-p-app-gw +# data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-api-rg/providers/Microsoft.ApiManagement/service/pagopa-p-apim +data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-api-rg/providers/Microsoft.ApiManagement/service/pagopa-p-weu-core-apim-v2 +resource_type: api-management +action_groups: + - /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-monitor-rg/providers/microsoft.insights/actionGroups/PagoPA + - /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-monitor-rg/providers/microsoft.insights/actionGroups/SlackPagoPA +overrides: + hosts: # Use these hosts instead of those inside the OpenApi spec + - api.platform.pagopa.it diff --git a/.opex/internal_apim_v2/v1/env/prod/terraform.tfvars b/.opex/internal_apim_v2/v1/env/prod/terraform.tfvars new file mode 100644 index 00000000..97c20d81 --- /dev/null +++ b/.opex/internal_apim_v2/v1/env/prod/terraform.tfvars @@ -0,0 +1,10 @@ +prefix = "pagopa" +env_short = "p" + +tags = { + CreatedBy = "Terraform" + Environment = "Prod" + Owner = "pagoPA" + Source = "https://github.com/pagopa/pagopa-afm-calculator" + CostCenter = "TS310 - PAGAMENTI & SERVIZI" +} diff --git a/.opex/internal_apim_v2/v2/env/prod/backend.ini b/.opex/internal_apim_v2/v2/env/prod/backend.ini new file mode 100644 index 00000000..63184253 --- /dev/null +++ b/.opex/internal_apim_v2/v2/env/prod/backend.ini @@ -0,0 +1 @@ +subscription=PROD-pagoPA diff --git a/.opex/internal_apim_v2/v2/env/prod/backend.tfvars b/.opex/internal_apim_v2/v2/env/prod/backend.tfvars new file mode 100644 index 00000000..add68ae2 --- /dev/null +++ b/.opex/internal_apim_v2/v2/env/prod/backend.tfvars @@ -0,0 +1,4 @@ +resource_group_name = "io-infra-rg" +storage_account_name = "pagopainfraterraformprod" +container_name = "azurermstate" +key = "opex.pagopa-afm-calculator_v2-apimv2.terraform.tfstate" diff --git a/.opex/internal_apim_v2/v2/env/prod/config.yaml b/.opex/internal_apim_v2/v2/env/prod/config.yaml new file mode 100644 index 00000000..037ec5d0 --- /dev/null +++ b/.opex/internal_apim_v2/v2/env/prod/config.yaml @@ -0,0 +1,14 @@ +oa3_spec: ./openapi/openapi-v2.json # If start with http the file would be downloaded from the internet +name: opex_pagopa-afm-calculator-v2-apimv2 +location: West Europe +timespan: 5m # Default, a number or a timespan https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/timespan +# data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-vnet-rg/providers/Microsoft.Network/applicationGateways/pagopa-p-app-gw +# data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-api-rg/providers/Microsoft.ApiManagement/service/pagopa-p-apim +data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-api-rg/providers/Microsoft.ApiManagement/service/pagopa-p-weu-core-apim-v2 +resource_type: api-management +action_groups: + - /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-monitor-rg/providers/microsoft.insights/actionGroups/PagoPA + - /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-monitor-rg/providers/microsoft.insights/actionGroups/SlackPagoPA +overrides: + hosts: # Use these hosts instead of those inside the OpenApi spec + - api.platform.pagopa.it diff --git a/.opex/internal_apim_v2/v2/env/prod/terraform.tfvars b/.opex/internal_apim_v2/v2/env/prod/terraform.tfvars new file mode 100644 index 00000000..97c20d81 --- /dev/null +++ b/.opex/internal_apim_v2/v2/env/prod/terraform.tfvars @@ -0,0 +1,10 @@ +prefix = "pagopa" +env_short = "p" + +tags = { + CreatedBy = "Terraform" + Environment = "Prod" + Owner = "pagoPA" + Source = "https://github.com/pagopa/pagopa-afm-calculator" + CostCenter = "TS310 - PAGAMENTI & SERVIZI" +} diff --git a/.opex/node_apim_v2/v1/env/prod/backend.ini b/.opex/node_apim_v2/v1/env/prod/backend.ini new file mode 100644 index 00000000..63184253 --- /dev/null +++ b/.opex/node_apim_v2/v1/env/prod/backend.ini @@ -0,0 +1 @@ +subscription=PROD-pagoPA diff --git a/.opex/node_apim_v2/v1/env/prod/backend.tfvars b/.opex/node_apim_v2/v1/env/prod/backend.tfvars new file mode 100644 index 00000000..8c09b0ce --- /dev/null +++ b/.opex/node_apim_v2/v1/env/prod/backend.tfvars @@ -0,0 +1,4 @@ +resource_group_name = "io-infra-rg" +storage_account_name = "pagopainfraterraformprod" +container_name = "azurermstate" +key = "opex.pagopa-afm-calculator_node-apimv2.terraform.tfstate" diff --git a/.opex/node_apim_v2/v1/env/prod/config.yaml b/.opex/node_apim_v2/v1/env/prod/config.yaml new file mode 100644 index 00000000..1263c1e3 --- /dev/null +++ b/.opex/node_apim_v2/v1/env/prod/config.yaml @@ -0,0 +1,14 @@ +oa3_spec: ./openapi/openapi-node-v1.json # If start with http the file would be downloaded from the internet +name: opex_pagopa-afm-calculator-node-v1-apimv2 +location: West Europe +timespan: 5m # Default, a number or a timespan https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/timespan +# data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-vnet-rg/providers/Microsoft.Network/applicationGateways/pagopa-p-app-gw +# data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-api-rg/providers/Microsoft.ApiManagement/service/pagopa-p-apim +data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-api-rg/providers/Microsoft.ApiManagement/service/pagopa-p-weu-core-apim-v2 +resource_type: api-management +action_groups: + - /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-monitor-rg/providers/microsoft.insights/actionGroups/PagoPA + - /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-monitor-rg/providers/microsoft.insights/actionGroups/SlackPagoPA +overrides: + hosts: # Use these hosts instead of those inside the OpenApi spec + - api.platform.pagopa.it diff --git a/.opex/node_apim_v2/v1/env/prod/terraform.tfvars b/.opex/node_apim_v2/v1/env/prod/terraform.tfvars new file mode 100644 index 00000000..97c20d81 --- /dev/null +++ b/.opex/node_apim_v2/v1/env/prod/terraform.tfvars @@ -0,0 +1,10 @@ +prefix = "pagopa" +env_short = "p" + +tags = { + CreatedBy = "Terraform" + Environment = "Prod" + Owner = "pagoPA" + Source = "https://github.com/pagopa/pagopa-afm-calculator" + CostCenter = "TS310 - PAGAMENTI & SERVIZI" +} diff --git a/.opex/node_apim_v2/v2/env/prod/backend.ini b/.opex/node_apim_v2/v2/env/prod/backend.ini new file mode 100644 index 00000000..63184253 --- /dev/null +++ b/.opex/node_apim_v2/v2/env/prod/backend.ini @@ -0,0 +1 @@ +subscription=PROD-pagoPA diff --git a/.opex/node_apim_v2/v2/env/prod/backend.tfvars b/.opex/node_apim_v2/v2/env/prod/backend.tfvars new file mode 100644 index 00000000..b61a4722 --- /dev/null +++ b/.opex/node_apim_v2/v2/env/prod/backend.tfvars @@ -0,0 +1,4 @@ +resource_group_name = "io-infra-rg" +storage_account_name = "pagopainfraterraformprod" +container_name = "azurermstate" +key = "opex.pagopa-afm-calculator_node_v2-apimv2.terraform.tfstate" diff --git a/.opex/node_apim_v2/v2/env/prod/config.yaml b/.opex/node_apim_v2/v2/env/prod/config.yaml new file mode 100644 index 00000000..d6a98d50 --- /dev/null +++ b/.opex/node_apim_v2/v2/env/prod/config.yaml @@ -0,0 +1,14 @@ +oa3_spec: ./openapi/openapi-node-v2.json # If start with http the file would be downloaded from the internet +name: opex_pagopa-afm-calculator-node-v2-apimv2 +location: West Europe +timespan: 5m # Default, a number or a timespan https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/timespan +# data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-vnet-rg/providers/Microsoft.Network/applicationGateways/pagopa-p-app-gw +# data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-api-rg/providers/Microsoft.ApiManagement/service/pagopa-p-apim +data_source: /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-api-rg/providers/Microsoft.ApiManagement/service/pagopa-p-weu-core-apim-v2 +resource_type: api-management +action_groups: + - /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-monitor-rg/providers/microsoft.insights/actionGroups/PagoPA + - /subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourceGroups/pagopa-p-monitor-rg/providers/microsoft.insights/actionGroups/SlackPagoPA +overrides: + hosts: # Use these hosts instead of those inside the OpenApi spec + - api.platform.pagopa.it diff --git a/.opex/node_apim_v2/v2/env/prod/terraform.tfvars b/.opex/node_apim_v2/v2/env/prod/terraform.tfvars new file mode 100644 index 00000000..97c20d81 --- /dev/null +++ b/.opex/node_apim_v2/v2/env/prod/terraform.tfvars @@ -0,0 +1,10 @@ +prefix = "pagopa" +env_short = "p" + +tags = { + CreatedBy = "Terraform" + Environment = "Prod" + Owner = "pagoPA" + Source = "https://github.com/pagopa/pagopa-afm-calculator" + CostCenter = "TS310 - PAGAMENTI & SERVIZI" +}