Skip to content

Commit

Permalink
[#IOPID-1764] add runner vnet to staging slot (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcogabbo authored Apr 24, 2024
1 parent 92cf7a0 commit 2aa68c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/domains/citizen-auth-app/01_network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ data "azurerm_subnet" "appgateway_snet" {
resource_group_name = local.vnet_common_resource_group_name
}

data "azurerm_subnet" "self_hosted_runner_snet" {
name = "io-p-github-runner-snet"
virtual_network_name = local.vnet_common_name
resource_group_name = local.vnet_common_resource_group_name
}

## session_manager subnet
data "azurerm_resource_group" "italy_north_common_rg" {
name = format("%s-itn-common-rg-001", local.product)
Expand Down
3 changes: 3 additions & 0 deletions src/domains/citizen-auth-app/08_session_manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ module "session_manager_staging" {
app_settings = local.app_settings_common

allowed_subnets = [
# self hosted runners subnet
data.azurerm_subnet.self_hosted_runner_snet.id,
#
data.azurerm_subnet.apim_v2_snet.id,
data.azurerm_subnet.appgateway_snet.id
// TODO: add proxy subnet
Expand Down
1 change: 1 addition & 0 deletions src/domains/citizen-auth-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
| [azurerm_subnet.azdoa_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_subnet.private_endpoints_subnet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subnet) | data source |
| [azurerm_subnet.self_hosted_runner_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 |
| [azurerm_virtual_network.common_vnet_italy_north](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/virtual_network) | data source |
| [azurerm_virtual_network.vnet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/virtual_network) | data source |
Expand Down

0 comments on commit 2aa68c0

Please sign in to comment.