Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't catch invalid rate(1 hours) #2141

Closed
blackary opened this issue Oct 14, 2021 · 0 comments · Fixed by #3017
Closed

Doesn't catch invalid rate(1 hours) #2141

blackary opened this issue Oct 14, 2021 · 0 comments · Fixed by #3017
Labels
enhancement New feature or request

Comments

@blackary
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants