Skip to content

Commit

Permalink
fix: upgraded terraform-azurerm-v3 plugin versions in function_lollip…
Browse files Browse the repository at this point in the history
…op and function_fast_login
  • Loading branch information
christian-calabrese committed Apr 18, 2024
1 parent e5da3d5 commit b760d07
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 32 deletions.
34 changes: 17 additions & 17 deletions 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.

28 changes: 25 additions & 3 deletions src/domains/citizen-auth-app/04_function_lollipop.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ resource "azurerm_resource_group" "lollipop_rg" {
# Subnet to host admin function
module "lollipop_snet" {
count = var.lollipop_enabled ? 1 : 0
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v7.77.0"
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v8.3.0"
name = format("%s-lollipop-snet", local.common_project)
address_prefixes = var.cidr_subnet_fnlollipop
resource_group_name = data.azurerm_virtual_network.vnet_common.resource_group_name
Expand All @@ -82,7 +82,7 @@ module "lollipop_snet" {

module "function_lollipop" {
count = var.lollipop_enabled ? 1 : 0
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v7.77.0"
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v8.3.0"

resource_group_name = azurerm_resource_group.lollipop_rg[0].name
name = format("%s-lollipop-fn", local.common_project)
Expand All @@ -100,6 +100,8 @@ module "function_lollipop" {
kind = var.function_lollipop_kind
sku_size = var.function_lollipop_sku_size
maximum_elastic_worker_count = 0
worker_count = null
zone_balancing_enabled = false
}

app_settings = merge(
Expand All @@ -120,6 +122,26 @@ module "function_lollipop" {
"blobs_retention_days" = 0,
}

storage_account_info = {
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "ZRS"
access_tier = "Hot"
advanced_threat_protection_enable = true
use_legacy_defender_version = true
public_network_access_enabled = true
}

internal_storage_account_info = {
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "ZRS"
access_tier = "Hot"
advanced_threat_protection_enable = false
use_legacy_defender_version = true
public_network_access_enabled = true
}

subnet_id = module.lollipop_snet[0].id

allowed_subnets = [
Expand All @@ -142,7 +164,7 @@ module "function_lollipop" {

module "function_lollipop_staging_slot" {
count = var.lollipop_enabled ? 1 : 0
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v7.77.0"
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v8.3.0"

name = "staging"
location = var.location
Expand Down
28 changes: 25 additions & 3 deletions src/domains/citizen-auth-app/07_function_fast_login.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ resource "azurerm_resource_group" "fast_login_rg" {
# Subnet to host admin function
module "fast_login_snet" {
count = var.fastlogin_enabled ? 1 : 0
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v7.77.0"
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v8.3.0"
name = format("%s-fast-login-snet", local.common_project)
address_prefixes = var.cidr_subnet_fnfastlogin
resource_group_name = data.azurerm_virtual_network.vnet_common.resource_group_name
Expand All @@ -93,7 +93,8 @@ module "fast_login_snet" {

module "function_fast_login" {
count = var.fastlogin_enabled ? 1 : 0
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v7.77.0"
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v8.3.0"


resource_group_name = azurerm_resource_group.fast_login_rg[0].name
name = format("%s-fast-login-fn", local.common_project)
Expand Down Expand Up @@ -133,6 +134,26 @@ module "function_fast_login" {
"blobs_retention_days" = 0,
}

storage_account_info = {
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "ZRS"
access_tier = "Hot"
advanced_threat_protection_enable = true
use_legacy_defender_version = true
public_network_access_enabled = true
}

internal_storage_account_info = {
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "ZRS"
access_tier = "Hot"
advanced_threat_protection_enable = false
use_legacy_defender_version = true
public_network_access_enabled = false
}

subnet_id = module.fast_login_snet[0].id

allowed_subnets = [
Expand All @@ -156,7 +177,8 @@ module "function_fast_login" {

module "function_fast_login_staging_slot" {
count = var.fastlogin_enabled ? 1 : 0
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v7.77.0"
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v8.3.0"


name = "staging"
location = var.location
Expand Down
2 changes: 1 addition & 1 deletion src/domains/citizen-auth-app/99_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "<= 3.96.0"
version = "<= 3.99.0"
}
azuread = {
source = "hashicorp/azuread"
Expand Down
16 changes: 8 additions & 8 deletions src/domains/citizen-auth-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Name | Version |
|------|---------|
| <a name="requirement_azuread"></a> [azuread](#requirement\_azuread) | <= 2.33.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | <= 3.40.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | <= 3.99.0 |
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | = 2.8.0 |
| <a name="requirement_kubernetes"></a> [kubernetes](#requirement\_kubernetes) | = 2.17.0 |
| <a name="requirement_null"></a> [null](#requirement\_null) | <= 3.2.1 |
Expand All @@ -14,12 +14,12 @@

| Name | Source | Version |
|------|--------|---------|
| <a name="module_fast_login_snet"></a> [fast\_login\_snet](#module\_fast\_login\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v6.19.1 |
| <a name="module_function_fast_login"></a> [function\_fast\_login](#module\_function\_fast\_login) | git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app | v6.19.1 |
| <a name="module_function_fast_login_staging_slot"></a> [function\_fast\_login\_staging\_slot](#module\_function\_fast\_login\_staging\_slot) | git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot | v6.19.1 |
| <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_fast_login_snet"></a> [fast\_login\_snet](#module\_fast\_login\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v8.3.0 |
| <a name="module_function_fast_login"></a> [function\_fast\_login](#module\_function\_fast\_login) | git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app | v8.3.0 |
| <a name="module_function_fast_login_staging_slot"></a> [function\_fast\_login\_staging\_slot](#module\_function\_fast\_login\_staging\_slot) | git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot | v8.3.0 |
| <a name="module_function_lollipop"></a> [function\_lollipop](#module\_function\_lollipop) | git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app | v8.3.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 | v8.3.0 |
| <a name="module_lollipop_snet"></a> [lollipop\_snet](#module\_lollipop\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v8.3.0 |

## Resources

Expand All @@ -35,7 +35,6 @@
| [azuread_group.adgroup_developers](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/group) | data source |
| [azuread_group.adgroup_externals](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/group) | data source |
| [azuread_group.adgroup_security](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/group) | data source |
| [azurerm_app_service.app_backend_li](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/app_service) | data source |
| [azurerm_application_insights.application_insights](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/application_insights) | data source |
| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config) | data source |
| [azurerm_cosmosdb_account.cosmos_citizen_auth](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/cosmosdb_account) | data source |
Expand All @@ -45,6 +44,7 @@
| [azurerm_key_vault_secret.backendli_api_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_key_vault_secret.fast_login_subscription_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_key_vault_secret.first_lollipop_consumer_subscription_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_linux_web_app.app_backend_li](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_web_app) | data source |
| [azurerm_log_analytics_workspace.log_analytics](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/log_analytics_workspace) | data source |
| [azurerm_monitor_action_group.email](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/monitor_action_group) | data source |
| [azurerm_monitor_action_group.error_action_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/monitor_action_group) | data source |
Expand Down

0 comments on commit b760d07

Please sign in to comment.