New form of square loading.
This commit is contained in:
@@ -330,14 +330,18 @@ resource "aws_cloudwatch_event_rule" "square_import_job_schedule" {
|
||||
}
|
||||
|
||||
|
||||
|
||||
resource "aws_cloudwatch_event_target" "square_import_job_target" {
|
||||
target_id = "square-import-job"
|
||||
arn = var.ecs_cluster
|
||||
rule = aws_cloudwatch_event_rule.square_import_job_schedule.name
|
||||
role_arn = var.execution_role_arn
|
||||
role_arn = "arn:aws:iam::679918342773:role/service-role/Amazon_EventBridge_Invoke_ECS_1758992733"
|
||||
|
||||
ecs_target {
|
||||
task_count = 1
|
||||
launch_type = "FARGATE"
|
||||
|
||||
# capacity_provider_strategy = [{capacity_provider = "FARGATE_SPOT"}]
|
||||
task_definition_arn = aws_ecs_task_definition.integreat_background_worker.arn
|
||||
network_configuration {
|
||||
assign_public_ip = true
|
||||
@@ -351,8 +355,9 @@ resource "aws_cloudwatch_event_target" "square_import_job_target" {
|
||||
"containerOverrides": [
|
||||
{
|
||||
"name": "integreat-app",
|
||||
"environment": [{"name": "INTEGREAT_JOB", "value": "hello-world"},
|
||||
{"name": "DD_SERVICE", "value": "hello-world"}]
|
||||
"environment": [{"name": "INTEGREAT_JOB", "value": "square-import-job"},
|
||||
{"name": "DD_SERVICE", "value": "square-import-job"},
|
||||
{"name": "DD_CONTAINER_ENV_AS_TAGS", "value":"{\"INTEGREAT_JOB\":\"task_family\"}"}]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user