-
Notifications
You must be signed in to change notification settings - Fork 4
[#IOPLT-1210]create resource for function elt in itn region #1672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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?
src/common/prod/italynorth.tf
Outdated
source = "../_modules/function_elt" | ||
prefix = local.prefix | ||
env_short = local.env_short | ||
project = local.project_weu_legacy |
There was a problem hiding this comment.
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.
project = local.project_weu_legacy | |
project_weu_legacy = local.project_weu_legacy |
There was a problem hiding this comment.
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" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BLOB_COMMAND_STORAGE
env
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
# 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 | ||
# } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ?
|
Tip ✅ All Terraform module locks are up to dateNo module changes detected - everything is in sync! 📋 Pre-commit Output Log
Generated on Thu Oct 16 08:28:48 UTC 2025 |
📖 Terraform Plan (src/common/dev) - successShow PlanNo changes detected. |
Tip ✅ All Terraform module locks are up to dateNo module changes detected - everything is in sync! 📋 Pre-commit Output Log
Generated on Thu Oct 16 08:31:18 UTC 2025 |
Tip ✅ All Terraform module locks are up to dateNo module changes detected - everything is in sync! 📋 Pre-commit Output Log
Generated on Thu Oct 16 08:35:00 UTC 2025 |
📖 Terraform Plan (src/common/prod) - successShow PlanPlan: 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. |
No description provided.