Skip to content

Commit a0ba9dd

Browse files
committed
reduce log retention to 3 days
1 parent df916f6 commit a0ba9dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.aws/lib/HackerRankQueueStack.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
aws_ecs as ecs,
55
aws_ecs_patterns as ecsPatterns,
66
aws_iam as iam,
7+
aws_logs as logs,
78
aws_route53 as route53,
89
CfnOutput,
910
Stack,
@@ -65,6 +66,10 @@ export class HackerRankQueueStack extends Stack {
6566
MODE: props.mode,
6667
},
6768
containerPort: 3000,
69+
logDriver: ecs.LogDrivers.awsLogs({
70+
streamPrefix: 'hacker-rank-queue',
71+
logRetention: logs.RetentionDays.THREE_DAYS,
72+
}),
6873
},
6974
cluster,
7075
cpu: 256,

0 commit comments

Comments
 (0)