generated from Azure/terraform-azurerm-avm-template
-
Notifications
You must be signed in to change notification settings - Fork 12
/
main.container.app.job.tf
43 lines (34 loc) · 2.22 KB
/
main.container.app.job.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module "container_app_job" {
count = local.deploy_container_app ? 1 : 0
source = "./modules/container-app-job"
resource_group_id = local.resource_group_id
location = var.location
postfix = var.postfix
keda_rule_type = var.version_control_system_type == local.version_control_system_azure_devops ? "azure-pipelines" : "github-runner"
keda_meta_data = local.keda_meta_data
environment_variables = local.environment_variables
environment_variables_placeholder = local.environment_variables_placeholder
sensitive_environment_variables = local.sensitive_environment_variables
container_app_environment_id = local.container_app_environment_id
registry_login_server = local.registry_login_server
registry_username = var.custom_container_registry_username
registry_password = var.custom_container_registry_password
container_image_name = local.container_images["container_app"].image_names[0]
job_name = var.container_app_job_name
job_container_name = var.container_app_job_container_name
replica_retry_limit = var.container_app_replica_retry_limit
replica_timeout = var.container_app_replica_timeout
placeholder_job_creation_enabled = var.version_control_system_type == local.version_control_system_azure_devops
placeholder_job_name = var.container_app_placeholder_job_name
placeholder_container_name = var.container_app_placeholder_container_name
placeholder_replica_retry_limit = var.container_app_placeholder_replica_retry_limit
placeholder_replica_timeout = var.container_app_placeholder_replica_timeout
polling_interval_seconds = var.container_app_polling_interval_seconds
container_cpu = var.container_app_container_cpu
container_memory = var.container_app_container_memory
min_execution_count = var.container_app_min_execution_count
max_execution_count = var.container_app_max_execution_count
tags = var.tags
user_assigned_managed_identity_id = local.user_assigned_managed_identity_id
depends_on = [module.container_registry, azurerm_private_dns_zone_virtual_network_link.container_registry, time_sleep.delay_after_container_image_build]
}