Skip to content

Commit

Permalink
[EC-274] Rename ItalyNorth resources (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 authored Apr 29, 2024
1 parent 2aa68c0 commit 305713f
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions src/core/_modules/networking/snet_private_endpoints.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module "pep_snet" {
source = "github.com/pagopa/terraform-azurerm-v3//subnet?ref=v8.5.0"
name = "${var.project}-pep-snet-001"
source = "github.com/pagopa/terraform-azurerm-v3//subnet?ref=v8.7.0"
name = "${var.project}-pep-snet-01"
address_prefixes = var.pep_snet_cidr
resource_group_name = var.resource_group_name
virtual_network_name = module.vnet_itn_common.name

private_endpoint_network_policies_enabled = false
}
}
4 changes: 2 additions & 2 deletions src/core/_modules/networking/vnet_common.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module "vnet_itn_common" {
source = "github.com/pagopa/terraform-azurerm-v3//virtual_network?ref=v7.76.0"
source = "github.com/pagopa/terraform-azurerm-v3//virtual_network?ref=v8.7.0"

name = "${var.project}-common-vnet-001"
name = "${var.project}-common-vnet-01"
location = var.location
resource_group_name = var.resource_group_name

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "vnet_peering_itn_common_weu_beta" {
source = "github.com/pagopa/terraform-azurerm-v3//virtual_network_peering?ref=v7.76.0"
source = "github.com/pagopa/terraform-azurerm-v3//virtual_network_peering?ref=v8.7.0"

source_resource_group_name = module.vnet_itn_common.resource_group_name
source_virtual_network_name = module.vnet_itn_common.name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "vnet_peering_itn_common_weu_prod01" {
source = "github.com/pagopa/terraform-azurerm-v3//virtual_network_peering?ref=v7.76.0"
source = "github.com/pagopa/terraform-azurerm-v3//virtual_network_peering?ref=v8.7.0"

source_resource_group_name = module.vnet_itn_common.resource_group_name
source_virtual_network_name = module.vnet_itn_common.name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "vnet_peering_weu_common_itn_common" {
source = "github.com/pagopa/terraform-azurerm-v3//virtual_network_peering?ref=v7.76.0"
source = "github.com/pagopa/terraform-azurerm-v3//virtual_network_peering?ref=v8.7.0"

source_resource_group_name = data.azurerm_virtual_network.weu_common.resource_group_name
source_virtual_network_name = data.azurerm_virtual_network.weu_common.name
Expand Down
2 changes: 1 addition & 1 deletion src/core/prod/italynorth/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/prod/italynorth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Name | Version |
|------|---------|
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | <= 3.99.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | <= 3.101.0 |

## Modules

Expand Down
4 changes: 2 additions & 2 deletions src/core/prod/italynorth/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "<= 3.99.0"
version = "<= 3.101.0"
}
}
}
Expand All @@ -20,7 +20,7 @@ provider "azurerm" {
}

resource "azurerm_resource_group" "vnet" {
name = "${local.project}-common-rg-001"
name = "${local.project}-common-rg-01"
location = local.location

tags = local.tags
Expand Down
2 changes: 1 addition & 1 deletion src/domains/citizen-auth-app/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/domains/citizen-auth-app/01_network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ data "azurerm_subnet" "self_hosted_runner_snet" {

## session_manager subnet
data "azurerm_resource_group" "italy_north_common_rg" {
name = format("%s-itn-common-rg-001", local.product)
name = format("%s-itn-common-rg-01", local.product)
}

data "azurerm_virtual_network" "common_vnet_italy_north" {
name = format("%s-itn-common-vnet-001", local.product)
name = format("%s-itn-common-vnet-01", local.product)
resource_group_name = data.azurerm_resource_group.italy_north_common_rg.name
}

module "session_manager_snet" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v8.4.0"
name = format("%s-session-manager-snet-001", local.common_session_manager_project)
source = "github.com/pagopa/terraform-azurerm-v3//subnet?ref=v8.7.0"
name = format("%s-session-manager-snet-01", local.common_session_manager_project)
address_prefixes = var.cidr_subnet_session_manager
resource_group_name = data.azurerm_resource_group.italy_north_common_rg.name
virtual_network_name = data.azurerm_virtual_network.common_vnet_italy_north.name
Expand Down
12 changes: 6 additions & 6 deletions src/domains/citizen-auth-app/08_session_manager.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "azurerm_resource_group" "session_manager_rg" {
name = format("%s-session-manager-rg", local.common_session_manager_project)
name = format("%s-session-manager-rg-01", local.common_session_manager_project)
location = var.session_manager_location

tags = var.tags
Expand Down Expand Up @@ -39,15 +39,15 @@ locals {
}

module "session_manager" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//app_service?ref=v8.4.0"
source = "github.com/pagopa/terraform-azurerm-v3//app_service?ref=v8.7.0"

# App service plan
plan_type = "internal"
plan_name = format("%s-session-manager-plan", local.common_session_manager_project)
plan_name = format("%s-session-manager-asp-01", local.common_session_manager_project)
sku_name = var.session_manager_plan_sku_name

# App service
name = format("%s-session-manager", local.common_session_manager_project)
name = format("%s-session-manager-app-01", local.common_session_manager_project)
resource_group_name = azurerm_resource_group.session_manager_rg.name
location = azurerm_resource_group.session_manager_rg.location

Expand All @@ -74,7 +74,7 @@ module "session_manager" {

## staging slot
module "session_manager_staging" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//app_service_slot?ref=v8.4.0"
source = "github.com/pagopa/terraform-azurerm-v3//app_service_slot?ref=v8.7.0"

app_service_id = module.session_manager.id
app_service_name = module.session_manager.name
Expand Down Expand Up @@ -108,7 +108,7 @@ module "session_manager_staging" {

## autoscaling
resource "azurerm_monitor_autoscale_setting" "session_manager_autoscale_setting" {
name = format("%s-autoscale", module.session_manager.name)
name = format("%s-autoscale-01", module.session_manager.name)
resource_group_name = azurerm_resource_group.session_manager_rg.name
location = azurerm_resource_group.session_manager_rg.location
target_resource_id = module.session_manager.plan_id
Expand Down
6 changes: 3 additions & 3 deletions src/domains/citizen-auth-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
| <a name="module_function_lollipop"></a> [function\_lollipop](#module\_function\_lollipop) | git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app | v5.2.0 |
| <a name="module_function_lollipop_staging_slot"></a> [function\_lollipop\_staging\_slot](#module\_function\_lollipop\_staging\_slot) | git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot | v5.2.0 |
| <a name="module_lollipop_snet"></a> [lollipop\_snet](#module\_lollipop\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v4.1.15 |
| <a name="module_session_manager"></a> [session\_manager](#module\_session\_manager) | git::https://github.com/pagopa/terraform-azurerm-v3.git//app_service | v8.4.0 |
| <a name="module_session_manager_snet"></a> [session\_manager\_snet](#module\_session\_manager\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v8.4.0 |
| <a name="module_session_manager_staging"></a> [session\_manager\_staging](#module\_session\_manager\_staging) | git::https://github.com/pagopa/terraform-azurerm-v3.git//app_service_slot | v8.4.0 |
| <a name="module_session_manager"></a> [session\_manager](#module\_session\_manager) | github.com/pagopa/terraform-azurerm-v3//app_service | v8.7.0 |
| <a name="module_session_manager_snet"></a> [session\_manager\_snet](#module\_session\_manager\_snet) | github.com/pagopa/terraform-azurerm-v3//subnet | v8.7.0 |
| <a name="module_session_manager_staging"></a> [session\_manager\_staging](#module\_session\_manager\_staging) | github.com/pagopa/terraform-azurerm-v3//app_service_slot | v8.7.0 |

## Resources

Expand Down

0 comments on commit 305713f

Please sign in to comment.