Skip to content

Commit

Permalink
ci(engine): Set FargateTask cpu and mem
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Mar 21, 2024
1 parent 197296f commit 1e08dc2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aws/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
"ApiTaskDefinition",
execution_role=execution_role,
task_role=task_role,
cpu=512,
memory_limit_mib=1024,
volumes=[
ecs.Volume(
name="Volume",
Expand All @@ -184,7 +186,7 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
file="Dockerfile",
build_args={"API_MODULE": "tracecat.api.app:app"},
),
cpu=256,
cpu=512,
memory_limit_mib=1024,
environment={
"TRACECAT__APP_ENV": TRACECAT__APP_ENV,
Expand Down Expand Up @@ -238,6 +240,8 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
"RunnerTaskDefinition",
execution_role=execution_role,
task_role=task_role,
cpu=512,
memory_limit_mib=1024,
volumes=[
ecs.Volume(
name="Volume",
Expand All @@ -254,7 +258,7 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
file="Dockerfile",
build_args={"API_MODULE": "tracecat.runner.app:app", "PORT": "8001"},
),
cpu=256,
cpu=512,
memory_limit_mib=1024,
environment={
"TRACECAT__APP_ENV": TRACECAT__APP_ENV,
Expand Down

0 comments on commit 1e08dc2

Please sign in to comment.