{ "family": "nayara-api", "networkMode": "awsvpc", "requiresCompatibilities": ["FARGATE"], "cpu": "4096", "memory": "8192", "executionRoleArn": "EXECUTION_ROLE_ARN", "taskRoleArn": "TASK_ROLE_ARN", "runtimePlatform": { "cpuArchitecture": "X86_64", "operatingSystemFamily": "LINUX" }, "containerDefinitions": [ { "name": "nayara-api", "image": "ECR_IMAGE_URI", "essential": true, "portMappings": [{"containerPort": 8080, "protocol": "tcp"}], "environment": [ {"name": "NAYARA_CHECKPOINT", "value": "S3_MODEL_URI"}, {"name": "NAYARA_THREADS", "value": "4"}, {"name": "NAYARA_REQUIRE_API_KEY", "value": "1"} ], "secrets": [ {"name": "NAYARA_API_KEY", "valueFrom": "API_KEY_SECRET_ARN"} ], "healthCheck": { "command": ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/readyz', timeout=3)\" || exit 1"], "interval": 30, "timeout": 5, "retries": 3, "startPeriod": 180 }, "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-group": "/ecs/nayara-api", "awslogs-region": "AWS_REGION", "awslogs-stream-prefix": "api" } } } ] }