2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 09:00:28 +01:00

add configuration for application level logging to cloudwatch

This commit is contained in:
Frederik Ring 2019-11-04 22:51:24 +01:00
parent 4247d190c4
commit 5cd7bed741

View File

@ -19,7 +19,15 @@
"condition": "START" "condition": "START"
} }
], ],
"links": ["server"] "links": ["server"],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "proxy",
"awslogs-region": "eu-west-1",
"awslogs-stream-prefix": "staging"
}
}
}, },
{ {
"name": "server", "name": "server",
@ -29,7 +37,15 @@
"command": ["serve"], "command": ["serve"],
"environment": [ "environment": [
{ "name": "OFFEN_SERVER_REVERSEPROXY", "value": "1" } { "name": "OFFEN_SERVER_REVERSEPROXY", "value": "1" }
] ],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "server",
"awslogs-region": "eu-west-1",
"awslogs-stream-prefix": "staging"
}
}
} }
] ]
} }