Skip to content

Commit

Permalink
[IOCOM-1636] Try override on parameter name (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldisaro authored Aug 30, 2024
1 parent 5cf7c4c commit fc5a475
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions src/domains/messages-common/05_apim_v2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ data "http" "messages_citizen_openapi" {
}

module "apim_v2_messages_citizen_l1_api_v1" {
source = "github.com/pagopa/terraform-azurerm-v3//api_management_api?ref=v8.17.0"
source = "github.com/pagopa/terraform-azurerm-v3//api_management_api?ref=v8.40.0"

name = format("%s-%s-messages-citizen-api-01", local.product, var.location_short)
api_management_name = data.azurerm_api_management.apim_v2_api.name
Expand All @@ -350,6 +350,11 @@ module "apim_v2_messages_citizen_l1_api_v1" {
subscription_required = true
service_url = null

subscription_key_names = {
header = "x-functions-key"
query = "subscription-key"
}

description = "IO Messages Citizen - L1 - API"
display_name = "IO Messages Citizen - L1 - API"
path = "messages/l1/api/v1"
Expand All @@ -362,7 +367,7 @@ module "apim_v2_messages_citizen_l1_api_v1" {
}

module "apim_v2_messages_citizen_l2_api_v1" {
source = "github.com/pagopa/terraform-azurerm-v3//api_management_api?ref=v8.17.0"
source = "github.com/pagopa/terraform-azurerm-v3//api_management_api?ref=v8.40.0"

name = format("%s-%s-messages-citizen-api-02", local.product, var.location_short)
api_management_name = data.azurerm_api_management.apim_v2_api.name
Expand All @@ -376,6 +381,11 @@ module "apim_v2_messages_citizen_l2_api_v1" {
path = "messages/l2/api/v1"
protocols = ["https"]

subscription_key_names = {
header = "x-functions-key"
query = "subscription-key"
}

content_format = "openapi"
content_value = data.http.messages_citizen_openapi.body

Expand Down
4 changes: 2 additions & 2 deletions src/domains/messages-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

| Name | Source | Version |
|------|--------|---------|
| <a name="module_apim_v2_messages_citizen_l1_api_v1"></a> [apim\_v2\_messages\_citizen\_l1\_api\_v1](#module\_apim\_v2\_messages\_citizen\_l1\_api\_v1) | github.com/pagopa/terraform-azurerm-v3//api_management_api | v8.17.0 |
| <a name="module_apim_v2_messages_citizen_l2_api_v1"></a> [apim\_v2\_messages\_citizen\_l2\_api\_v1](#module\_apim\_v2\_messages\_citizen\_l2\_api\_v1) | github.com/pagopa/terraform-azurerm-v3//api_management_api | v8.17.0 |
| <a name="module_apim_v2_messages_citizen_l1_api_v1"></a> [apim\_v2\_messages\_citizen\_l1\_api\_v1](#module\_apim\_v2\_messages\_citizen\_l1\_api\_v1) | github.com/pagopa/terraform-azurerm-v3//api_management_api | v8.40.0 |
| <a name="module_apim_v2_messages_citizen_l2_api_v1"></a> [apim\_v2\_messages\_citizen\_l2\_api\_v1](#module\_apim\_v2\_messages\_citizen\_l2\_api\_v1) | github.com/pagopa/terraform-azurerm-v3//api_management_api | v8.40.0 |
| <a name="module_apim_v2_messages_sending_external_api_v1"></a> [apim\_v2\_messages\_sending\_external\_api\_v1](#module\_apim\_v2\_messages\_sending\_external\_api\_v1) | github.com/pagopa/terraform-azurerm-v3//api_management_api | v8.17.0 |
| <a name="module_apim_v2_messages_sending_internal_api_v1"></a> [apim\_v2\_messages\_sending\_internal\_api\_v1](#module\_apim\_v2\_messages\_sending\_internal\_api\_v1) | github.com/pagopa/terraform-azurerm-v3//api_management_api | v8.27.0 |
| <a name="module_apim_v2_product_messages_backend"></a> [apim\_v2\_product\_messages\_backend](#module\_apim\_v2\_product\_messages\_backend) | github.com/pagopa/terraform-azurerm-v3//api_management_product | v8.27.0 |
Expand Down

0 comments on commit fc5a475

Please sign in to comment.