Skip to content

Commit

Permalink
[#IOPID-581] add fast_login subnet to appbackendli
Browse files Browse the repository at this point in the history
  • Loading branch information
arcogabbo committed Sep 21, 2023
1 parent 9e13112 commit 92aabb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@
| [azurerm_storage_account.storage_apievents](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/storage_account) | data source |
| [azurerm_storage_account.userbackups](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/storage_account) | data source |
| [azurerm_storage_account.userdatadownload](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/storage_account) | data source |
| [azurerm_subnet.functions_fast_login_snet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subnet) | data source |
| [azurerm_subnet.ioweb_profile_snet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subnet) | data source |
| [azurerm_subscription.current](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subscription) | data source |

Expand Down
7 changes: 7 additions & 0 deletions src/core/app_backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,12 @@ resource "azurerm_subnet_nat_gateway_association" "app_backendl1_snet" {
subnet_id = module.app_backendl1_snet.id
}

data "azurerm_subnet" "functions_fast_login_snet" {
name = format("%s-%s-fast-login-snet", local.project, var.location_short)
virtual_network_name = module.vnet_common.name
resource_group_name = azurerm_resource_group.rg_common.name
}

module "appservice_app_backendl1" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//app_service?ref=v4.1.15"

Expand Down Expand Up @@ -1070,6 +1076,7 @@ module "appservice_app_backendli" {
module.services_snet[0].id,
module.services_snet[1].id,
module.admin_snet.id,
data.azurerm_subnet.functions_fast_login_snet.id,
]

allowed_ips = concat(
Expand Down

0 comments on commit 92aabb3

Please sign in to comment.