Skip to content

Conversation

StefanoDoc
Copy link
Contributor

No description provided.

@StefanoDoc StefanoDoc changed the title WIP[#IOPLT-1210]create resource for function elt in itn region [#IOPLT-1210]create resource for function elt in itn region Oct 14, 2025
@StefanoDoc StefanoDoc marked this pull request as ready for review October 14, 2025 13:30
@StefanoDoc StefanoDoc requested review from a team as code owners October 14, 2025 13:30
Copy link
Contributor

@BurnedMarshal BurnedMarshal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc. @Krusty93
The current fn-elt in weu have multiple storage account linked, the itn migration for the storages was completed or it was interrupted ongoing?

source = "../_modules/function_elt"
prefix = local.prefix
env_short = local.env_short
project = local.project_weu_legacy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any references to old weu resources should be explicit inside the module.

Suggested change
project = local.project_weu_legacy
project_weu_legacy = local.project_weu_legacy

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tags = var.tags
}

module "storage_account_itn_elt_02" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This storage it's not used in this PR. But on the as is configuration it's the one really used, see BLOB_COMMAND_STORAGE env

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR_STORAGE_TABLE_NOTIFICATION_STATUS = data.azurerm_storage_table.fnelterrors_notification_status.name

COMMAND_STORAGE = module.storage_account_itn_elt.primary_connection_string
BLOB_COMMAND_STORAGE = module.storage_account_itn_elt.primary_connection_string
Copy link
Contributor

@BurnedMarshal BurnedMarshal Oct 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto, in production is used 02 and not 01

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR_STORAGE_TABLE_MESSAGE_STATUS = data.azurerm_storage_table.fnelterrors_message_status.name
ERROR_STORAGE_TABLE_NOTIFICATION_STATUS = data.azurerm_storage_table.fnelterrors_notification_status.name

COMMAND_STORAGE = module.storage_account_itn_elt.primary_connection_string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This storage connection string in production it's configured with the internal fn storage

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.



ERROR_STORAGE_ACCOUNT = module.storage_account_itn_elt.name
ERROR_STORAGE_KEY = module.storage_account_itn_elt.primary_connection_string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in production the storage used for this ENV it's iopfneltsdt

Comment on lines +28 to +36
# FIXME : do we need this ?
# app_service_plan_info = {
# kind = "elastic"
# sku_tier = "ElasticPremium"
# sku_size = "EP2"
# maximum_elastic_worker_count = 5
# worker_count = null
# zone_balancing_enabled = null
# }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is used for elastic function configuration. If we use the dx module maybe this type of function it's not available. We should find an equivalente configuration for sku and autoscaler.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Krusty93 can we replicate this with a module ?

# zone_balancing_enabled = null
# }

app_settings = merge(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be careful that this module will create a slot, in production slot isn't present. We need a double check on triggers to avoid that slot will execute some code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can add slot_app_setting as a copy of app_setting and disable every function is that ok ?

Copy link

Copy link

Tip

✅ All Terraform module locks are up to date

No module changes detected - everything is in sync!

📋 Pre-commit Output Log
[INFO] Initializing environment for https://github.com/pagopa/dx.
[INFO] Initializing environment for https://github.com/antonbabenko/pre-commit-terraform.
Lock Terraform Registry modules..........................................Passed

Generated on Thu Oct 16 08:28:48 UTC 2025
Run lock_modules on folder: src/common/dev/

Copy link

📖 Terraform Plan (src/common/dev) - success

Show Plan
No changes detected.

Copy link

Tip

✅ All Terraform module locks are up to date

No module changes detected - everything is in sync!

📋 Pre-commit Output Log
[INFO] Initializing environment for https://github.com/pagopa/dx.
[INFO] Initializing environment for https://github.com/antonbabenko/pre-commit-terraform.
Terraform Providers Lock (on staged .terraform.lock.hcl files).......................Passed
- hook id: terraform_providers_lock_staged
- duration: 0.03s

No .terraform.lock.hcl files to process.

Lock Terraform Registry modules......................................................Passed
Terraform validate with tflint.......................................................Passed
Terraform fmt........................................................................Passed
terraform_docs on resources..........................................................Passed
Terraform validate...................................................................Passed
Terraform validate with trivy........................................................Passed

Generated on Thu Oct 16 08:31:18 UTC 2025
Run all checks on modified files

Copy link

Tip

✅ All Terraform module locks are up to date

No module changes detected - everything is in sync!

📋 Pre-commit Output Log
[INFO] Initializing environment for https://github.com/pagopa/dx.
[INFO] Initializing environment for https://github.com/antonbabenko/pre-commit-terraform.
Lock Terraform Registry modules..........................................Passed

Generated on Thu Oct 16 08:35:00 UTC 2025
Run lock_modules on folder: src/common/prod/

Copy link

📖 Terraform Plan (src/common/prod) - success

Show Plan
Plan: 2 to import, 72 to add, 12 to change, 1 to destroy.

Full plan output was too long and was omitted. Check the workflow logs for full details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants