Skip to content

Commit

Permalink
added configuration for receipt service
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldisaro committed Aug 23, 2023
1 parent 3982529 commit 440a6ba
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/core/99_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
5 changes: 4 additions & 1 deletion src/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
| <a name="module_vnet_weu_prod02"></a> [vnet\_weu\_prod02](#module\_vnet\_weu\_prod02) | git::https://github.com/pagopa/terraform-azurerm-v3.git//virtual_network | v4.1.15 |
| <a name="module_vpn"></a> [vpn](#module\_vpn) | git::https://github.com/pagopa/terraform-azurerm-v3.git//vpn_gateway | v4.1.15 |
| <a name="module_vpn_snet"></a> [vpn\_snet](#module\_vpn\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v4.1.15 |
| <a name="module_web_test_api"></a> [web\_test\_api](#module\_web\_test\_api) | git::https://github.com/pagopa/terraform-azurerm-v3.git//application_insights_web_test_preview | v6.20.2 |
| <a name="module_web_test_api"></a> [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

Expand Down Expand Up @@ -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 |
Expand Down Expand Up @@ -800,6 +801,8 @@
| <a name="input_function_services_kind"></a> [function\_services\_kind](#input\_function\_services\_kind) | App service plan kind | `string` | `null` | no |
| <a name="input_function_services_sku_size"></a> [function\_services\_sku\_size](#input\_function\_services\_sku\_size) | App service plan sku size | `string` | `null` | no |
| <a name="input_function_services_sku_tier"></a> [function\_services\_sku\_tier](#input\_function\_services\_sku\_tier) | App service plan sku tier | `string` | `null` | no |
| <a name="input_io_receipt_service_id"></a> [io\_receipt\_service\_id](#input\_io\_receipt\_service\_id) | The Service ID of io-receipt service | `string` | `"01GQQZ9HF5GAPRVKJM1VDAVFHM"` | no |
| <a name="input_io_receipt_service_test_url"></a> [io\_receipt\_service\_test\_url](#input\_io\_receipt\_service\_test\_url) | The endpoint of Receipt Service (test env) | `string` | n/a | yes |
| <a name="input_io_sign_service_id"></a> [io\_sign\_service\_id](#input\_io\_sign\_service\_id) | The Service ID of io-sign service | `string` | `"01GQQZ9HF5GAPRVKJM1VDAVFHM"` | no |
| <a name="input_law_daily_quota_gb"></a> [law\_daily\_quota\_gb](#input\_law\_daily\_quota\_gb) | The workspace daily quota for ingestion in GB. | `number` | `-1` | no |
| <a name="input_law_retention_in_days"></a> [law\_retention\_in\_days](#input\_law\_retention\_in\_days) | The workspace data retention in days | `number` | `90` | no |
Expand Down
22 changes: 22 additions & 0 deletions src/core/app_backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/core/env/prod/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 440a6ba

Please sign in to comment.