terraform-aws-modules / terraform-aws-eventbridge

Terraform module to create AWS EventBridge resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/eventbridge/aws
Other
143 stars 149 forks source link

Argument is deprecated #115

Closed iramello closed 7 months ago

iramello commented 7 months ago

│ Warning: Argument is deprecated │ │ with module.eventbridge.aws_cloudwatch_event_rule.this["test"], │ on .terraform/modules/eventbridge/main.tf line 91, in resource "aws_cloudwatch_event_rule" "this": │ 91: is_enabled = lookup(each.value, "enabled", null) │ │ Use "state" instead

magreenbaum commented 7 months ago

State is available to switch to here: https://github.com/terraform-aws-modules/terraform-aws-eventbridge/blob/87a112caeba0ba6b77a47e0447070ed23ad64979/main.tf#L95

Here is an example: https://github.com/terraform-aws-modules/terraform-aws-eventbridge/blob/87a112caeba0ba6b77a47e0447070ed23ad64979/examples/complete/main.tf#L52

github-actions[bot] commented 6 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.