From 49c20065c9ba25d4aeb5026a5357a3f4a5993966 Mon Sep 17 00:00:00 2001 From: David McKee Date: Mon, 4 Dec 2023 16:48:38 +0000 Subject: [PATCH] Swap deprecated is_enabled argument for state 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 ``` --- terraform/modules/lambda_s3/eb.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/modules/lambda_s3/eb.tf b/terraform/modules/lambda_s3/eb.tf index c15f5db74..3ccc6520b 100644 --- a/terraform/modules/lambda_s3/eb.tf +++ b/terraform/modules/lambda_s3/eb.tf @@ -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 * * ? *)" }