Closed
Description
CloudFormation Lint Version
1.22.7
What operating system are you using?
Windows
Describe the bug
When running cfn-lint on a CF yaml template
The cfn-lint doesn't validate that the length of the AWS::Events::Rule Name property is less than 64 chars
as mentioned here
Expected behavior
cfn-lint to return an E3033 error saying '' is longer than 64
Reproduction template
AWSTemplateFormatVersion: 2010-09-09
Description: >-
Rule that listens for state changes of CloudWatch Alarms rule name too long
Resources:
EventRule:
Type: AWS::Events::Rule
Properties:
Name: 'RuleNameTooLong0000000000000000000000000000000000000000000000000000'
Description: 'Event rule that listens for state changes of CloudWatch Alarms'
EventPattern:
source:
- "aws.cloudwatch"
detail-type:
- "CloudWatch Alarm State Change"
detail:
alarmName:
- "Alarm1"
State: ENABLED
Targets:
- Arn: arn:aws:cloudwatch:us-west-2:123456789012:alarm:Alarm1
Id: "LogGroupTarget"```
Metadata
Assignees
Labels
No labels