aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
Received ''null' values are not allowed in templates'' while creating AWS::Events::Rule -> EventPattern
- Dominant language
- No language data
- Stars
- 1.1k
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
### Name of the resource
AWS::Events::Rule
### Resource Name
_No response_
### Issue Description
EventPattern accepts Null value as per EventBridge service [1] ,even CDK documentation [2] mention that EventPattern can have null values. However CloudFormation service does not accept Null value when defined for EventPattern. Template fails in validation with following error - 'null' values are not allowed in templates
[1] https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-null-values.html
[2] https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventPattern.html
### Expected Behavior
AWS::Events::Rule should accept null values for 'EventPattern' property
### Observed Behavior
template does not pass validation and throws error - 'null' values are not allowed in templates
### Test Cases
Create EventBridge rule with EventPattern having null value in CFN template
### Other Details
_No response_
Contributor guide
Research direction
Start by reproducing the AWS::Events::Rule validation failure with an EventPattern containing a null value, then compare the behavior with the linked EventBridge and CDK documentation. Done means CloudFormation accepts the documented null value in EventPattern without the template validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100