diff --git a/src/core/99_variables.tf b/src/core/99_variables.tf
index 10c23dd99..17c01da45 100644
--- a/src/core/99_variables.tf
+++ b/src/core/99_variables.tf
@@ -996,6 +996,17 @@ variable "io_sign_service_id" {
default = "01GQQZ9HF5GAPRVKJM1VDAVFHM"
}
+# io-receipt service
+variable "io_receipt_service_id" {
+ type = string
+ description = "The Service ID of io-receipt service"
+ default = "01GQQZ9HF5GAPRVKJM1VDAVFHM"
+}
+
+variable "io_receipt_service_test_url" {
+ type = string
+ description = "The endpoint of Receipt Service (test env)"
+}
# Function CGN
variable "plan_cgn_kind" {
diff --git a/src/core/README.md b/src/core/README.md
index a186f7497..edfc04f18 100644
--- a/src/core/README.md
+++ b/src/core/README.md
@@ -178,7 +178,7 @@
| [vnet\_weu\_prod02](#module\_vnet\_weu\_prod02) | git::https://github.com/pagopa/terraform-azurerm-v3.git//virtual_network | v4.1.15 |
| [vpn](#module\_vpn) | git::https://github.com/pagopa/terraform-azurerm-v3.git//vpn_gateway | v4.1.15 |
| [vpn\_snet](#module\_vpn\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v4.1.15 |
-| [web\_test\_api](#module\_web\_test\_api) | git::https://github.com/pagopa/terraform-azurerm-v3.git//application_insights_web_test_preview | v6.20.2 |
+| [web\_test\_api](#module\_web\_test\_api) | git::https://github.com/pagopa/terraform-azurerm-v3.git//application_insights_web_test_preview | v7.0.0 |
## Resources
@@ -545,6 +545,7 @@
| [azurerm_key_vault_secret.app_backend_PN_API_KEY_UAT_V2](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_key_vault_secret.app_backend_PN_REAL_TEST_USERS](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_key_vault_secret.app_backend_PRE_SHARED_KEY](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
+| [azurerm_key_vault_secret.app_backend_RECEIPT_SERVICE_TEST_API_KEY](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_key_vault_secret.app_backend_SAML_CERT](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_key_vault_secret.app_backend_SAML_KEY](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_key_vault_secret.app_backend_TEST_CGN_FISCAL_CODES](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
@@ -800,6 +801,8 @@
| [function\_services\_kind](#input\_function\_services\_kind) | App service plan kind | `string` | `null` | no |
| [function\_services\_sku\_size](#input\_function\_services\_sku\_size) | App service plan sku size | `string` | `null` | no |
| [function\_services\_sku\_tier](#input\_function\_services\_sku\_tier) | App service plan sku tier | `string` | `null` | no |
+| [io\_receipt\_service\_id](#input\_io\_receipt\_service\_id) | The Service ID of io-receipt service | `string` | `"01GQQZ9HF5GAPRVKJM1VDAVFHM"` | no |
+| [io\_receipt\_service\_test\_url](#input\_io\_receipt\_service\_test\_url) | The endpoint of Receipt Service (test env) | `string` | n/a | yes |
| [io\_sign\_service\_id](#input\_io\_sign\_service\_id) | The Service ID of io-sign service | `string` | `"01GQQZ9HF5GAPRVKJM1VDAVFHM"` | no |
| [law\_daily\_quota\_gb](#input\_law\_daily\_quota\_gb) | The workspace daily quota for ingestion in GB. | `number` | `-1` | no |
| [law\_retention\_in\_days](#input\_law\_retention\_in\_days) | The workspace data retention in days | `number` | `90` | no |
diff --git a/src/core/app_backend.tf b/src/core/app_backend.tf
index 255412085..968817d79 100644
--- a/src/core/app_backend.tf
+++ b/src/core/app_backend.tf
@@ -239,6 +239,23 @@ locals {
}
}
},
+ # Receipt Service
+ {
+ serviceId = var.io_receipt_service_id,
+ schemaKind = "ReceiptService",
+ jsonSchema = "unused",
+ isLollipopEnabled = "false",
+ disableLollipopFor = [],
+ testEnvironment = {
+ testUsers = [],
+ baseUrl = var.io_receipt_service_test_url,
+ detailsAuthentication = {
+ type = "API_KEY",
+ header_key_name = "Ocp-Apim-Subscription-Key",
+ key = data.azurerm_key_vault_secret.app_backend_RECEIPT_SERVICE_TEST_API_KEY.value
+ }
+ }
+ },
# Mock Service
{
serviceId = var.third_party_mock_service_id,
@@ -494,6 +511,11 @@ data "azurerm_key_vault_secret" "app_backend_ALLOWED_CIE_TEST_FISCAL_CODES" {
key_vault_id = module.key_vault_common.id
}
+data "azurerm_key_vault_secret" "app_backend_RECEIPT_SERVICE_TEST_API_KEY" {
+ name = "appbackend-RECEIPT-SERVICE-TEST-API-KEY"
+ key_vault_id = module.key_vault_common.id
+}
+
#tfsec:ignore:AZU023
resource "azurerm_key_vault_secret" "appbackend-REDIS-PASSWORD" {
name = "appbackend-REDIS-PASSWORD"
diff --git a/src/core/env/prod/terraform.tfvars b/src/core/env/prod/terraform.tfvars
index b27fb978a..6b430cc2c 100644
--- a/src/core/env/prod/terraform.tfvars
+++ b/src/core/env/prod/terraform.tfvars
@@ -456,6 +456,9 @@ pn_service_id = "01G40DWQGKY5GRWSNM4303VNRP"
# PN Test Endpoint
pn_test_endpoint = "https://api-io.uat.notifichedigitali.it"
+# RECEIPT SERVICE
+io_receipt_service_id = "01H4ZJ62C1CPGJ0PX8Q1BP7FAB"
+io_receipt_service_test_url = "https://api.uat.platform.pagopa.it/receipts/service/v1"
# TP Mock Service Id
third_party_mock_service_id = "01GQQDPM127KFGG6T3660D5TXD"