hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

[New Data Source]: aws_cloudwatch_event_rule #38157

Open LumaC0 opened 3 months ago

LumaC0 commented 3 months ago

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

data "aws_cloudwatch_event_rule" "rule" {
  name = "example-rule"
  event_bus_name = "example-bus" # omitting uses the default event bus
}

References

https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/eventbridge#Client.DescribeRule

Would you like to implement a fix?

Yes

github-actions[bot] commented 3 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue