cfn-lint icon indicating copy to clipboard operation
cfn-lint copied to clipboard

Doesn't catch invalid `rate(1 hours)`

Open blackary opened this issue 4 years ago • 0 comments

cfn-lint version: (cfn-lint --version)

0.44.7

Description of issue.

cfn-lint doesn't recognize that this ScheduledExpression is invalid (should be rate(1 hour))

  ExampleRule:
    Type: AWS::Events::Rule
    Properties:
      Description: desc
      Name: name
      ScheduleExpression: rate(1 hours)
      State: ENABLED

But when building the cloudformation, I get the following error:

Parameter ScheduleExpression is not valid. (Service: AmazonCloudWatchEvents; Status Code: 400; Error Code: ValidationException; Request ID: ...; Proxy: null)

I saw #816, but since this is a rate issue, not a cron issue, I thought I should open a new ticket

blackary avatar Oct 14 '21 17:10 blackary