resource "awscloudwatcheventrule" "dailylambdatrigger" { name = var.rulename description…
- User
resource "aws_cloudwatch_event_rule" "daily_lambda_trigger" { name = var.rule_name description = var.rule_description schedule_expression = var.schedule_expression is_enabled = true }
is the "is_enabled" realy depracted
Assistant
No, the
is_enabledargument for theaws_cloudwatch_event_ruleresource in the Terraform AWS provider is not deprecated.It is a standard and current argument used to control whether the EventBridge (CloudWatch Events) rule is active or disabled.
is_enabled = true(or omitting it, astrueis the default) means the rule will fire when its schedule or event pattern is matched.is_enabled = falsemeans the rule is disabled and will not fire.
You can find this confirmed in the official Terraform AWS Provider documentation for the
aws_cloudwatch_event_ruleresource.Perhaps you were thinking of an older argument like
statewhich was used in very old versions of the provider but has since been removed in favor ofis_enabled.is_enabledis the correct and supported argument.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.