CloudWatch (EventBridge) event rules are reusable across targets. A data source to retrieve information (id, arn, etc.) about a rule will improve usability.
Requested Resource(s) and/or Data Source(s)
aws_cloudwatch_event_rule
Potential Terraform Configuration
data "aws_cloudwatch_event_rule" "rule" {
name = "example-rule"
event_bus_name = "example-bus" # omitting uses the default event bus
}
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
CloudWatch (EventBridge) event rules are reusable across targets. A data source to retrieve information (id, arn, etc.) about a rule will improve usability.
Requested Resource(s) and/or Data Source(s)
aws_cloudwatch_event_rule
Potential Terraform Configuration
References
https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/eventbridge#Client.DescribeRule
Would you like to implement a fix?
Yes