Skip to content

Commit aca9f1b

Browse files
committed
set memory and cpu at task level
1 parent ed6c23a commit aca9f1b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/service_stack.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ def _get_secret(scope: Construct, id: str, name: str) -> sm.Secret:
109109
self.container = self.task_definition.add_container(
110110
props.container_name,
111111
image=image,
112-
memory_limit_mib=props.container_memory,
113112
environment=props.container_env_vars,
114113
secrets=secrets,
115114
port_mappings=[

tests/unit/test_service_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ def test_service_stack_created():
4646
"ContainerDefinitions": [
4747
{
4848
"Image": "ghcr.io/sage-bionetworks/app:1.0",
49-
"Memory": 512,
5049
"MountPoints": [{"ContainerPath": "/work"}],
5150
"Secrets": [{"Name": "APP_SECRET"}],
5251
"Command": ["test"],
5352
"HealthCheck": {"Command": ["CMD", "/healthcheck"]},
5453
}
5554
],
5655
"Cpu": "256",
56+
"Memory": "512",
5757
},
5858
)

0 commit comments

Comments
 (0)