This commit is contained in:
2022-09-18 09:29:12 -07:00
parent d65c87dc6d
commit a9c3f74909
5 changed files with 307 additions and 16 deletions

View File

@@ -332,4 +332,30 @@ module "square_import_job" {
schedule = "rate(4 hours)"
job_name = "square-import-job"
execution_role_arn = var.execution_role_arn
memory = 4096
cpu = 1024
}
module "reconcile_ledger_job" {
source = "./background-job/"
ecs_cluster = var.ecs_cluster
task_role_arn = var.task_role_arn
stage = var.stage
schedule = "rate(1 hour)"
job_name = "reconcile-ledger"
execution_role_arn = var.execution_role_arn
memory = 8192
cpu = 2048
}
module "current_balance_cache" {
source = "./background-job/"
ecs_cluster = var.ecs_cluster
task_role_arn = var.task_role_arn
stage = var.stage
schedule = "rate(15 minutes)"
job_name = "current-balance-cache"
execution_role_arn = var.execution_role_arn
memory = 2048
cpu = 512
}