Skip to content

Commit

Permalink
Swap deprecated is_enabled argument for state
Browse files Browse the repository at this point in the history
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_rule#argument-reference

```
Warning: Argument is deprecated

  with module.lambda_s3.aws_cloudwatch_event_rule.db_backup,
  on modules/lambda_s3/eb.tf line 4, in resource "aws_cloudwatch_event_rule" "db_backup":
   4:   is_enabled          = true # update last

Use "state" instead
```
  • Loading branch information
dragon-dxw committed Dec 5, 2023
1 parent a286689 commit 49c2006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/modules/lambda_s3/eb.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "aws_cloudwatch_event_rule" "db_backup" {
name = "db-backup"
description = "Trigger lambda to perform db snapshot"
is_enabled = true # update last
state = "ENABLED"
schedule_expression = "cron(0 12 * * ? *)"
}

Expand Down

0 comments on commit 49c2006

Please sign in to comment.