From 5cd7bed741dd1f717dde3f8ee005a03f11a5398a Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Mon, 4 Nov 2019 22:51:24 +0100 Subject: [PATCH] add configuration for application level logging to cloudwatch --- Dockerrun.aws.json.staging | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Dockerrun.aws.json.staging b/Dockerrun.aws.json.staging index 729b0ec..5690e60 100644 --- a/Dockerrun.aws.json.staging +++ b/Dockerrun.aws.json.staging @@ -19,7 +19,15 @@ "condition": "START" } ], - "links": ["server"] + "links": ["server"], + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-group": "proxy", + "awslogs-region": "eu-west-1", + "awslogs-stream-prefix": "staging" + } + } }, { "name": "server", @@ -29,7 +37,15 @@ "command": ["serve"], "environment": [ { "name": "OFFEN_SERVER_REVERSEPROXY", "value": "1" } - ] + ], + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-group": "server", + "awslogs-region": "eu-west-1", + "awslogs-stream-prefix": "staging" + } + } } ] }