-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathprefect-agent-td.json
47 lines (47 loc) · 1.42 KB
/
prefect-agent-td.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"family": "prefect-agent",
"requiresCompatibilities": [
"FARGATE"
],
"networkMode": "awsvpc",
"cpu": "512",
"memory": "1024",
"taskRoleArn": "arn:aws:iam::<>:role/prefectTaskRole",
"executionRoleArn": "arn:aws:iam::<>:role/ecsTaskExecutionRole",
"containerDefinitions": [
{
"name": "prefect-agent",
"image": "prefecthq/prefect:2-latest",
"essential": true,
"command": [
"prefect",
"agent",
"start",
"<WORK_QUUE_ID>"
],
"environment": [
{
"name": "PREFECT_API_KEY",
"value": "<your-key>"
},
{
"name": "PREFECT_API_URL",
"value": "https://api.prefect.cloud/api/accounts/[ACCOUNT-ID]/workspaces/[WORKSPACE-ID]"
},
{
"name": "PREFECT_LOGGING_LEVEL",
"value": "INFO"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/prefect-agent",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs",
"awslogs-create-group": "true"
}
}
}
]
}