From 54ee21d3a2bd161bab6a8fdb87332373fbea311c Mon Sep 17 00:00:00 2001 From: Simon-Pierre Gingras <892367+spg@users.noreply.github.com> Date: Wed, 8 Jan 2025 08:56:12 -0500 Subject: [PATCH] fix(aws-ecs): fix incorrect rate `rate(1 min)` should be `rate(1 minute)` See: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html#eb-rate-expressions --- packages/aws-cdk-lib/aws-ecs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/aws-ecs/README.md b/packages/aws-cdk-lib/aws-ecs/README.md index 9e765b3cb4b34..97bea8e75df1e 100644 --- a/packages/aws-cdk-lib/aws-ecs/README.md +++ b/packages/aws-cdk-lib/aws-ecs/README.md @@ -1169,7 +1169,7 @@ taskDefinition.addContainer('TheContainer', { // An Rule that describes the event trigger (in this case a scheduled run) const rule = new events.Rule(this, 'Rule', { - schedule: events.Schedule.expression('rate(1 min)'), + schedule: events.Schedule.expression('rate(1 minute)'), }); // Pass an environment variable to the container 'TheContainer' in the task