-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: remove deprecated variables (#4073)
Removing deprecated variables - `lambda_tracing_mode` - `enable_event_rule_binaries_syncer` - `runners_scale_up_Lambda_memory_size` --------- Co-authored-by: forest-pr|bot <forest-pr[bot]@users.noreply.github.com> Co-authored-by: philips-labs-pr|bot <philips-labs-pr[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2f20a8b
commit 099c78d
Showing
2 changed files
with
11 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,14 @@ | ||
# tflint-ignore: terraform_unused_declarations | ||
variable "lambda_tracing_mode" { | ||
description = "DEPRECATED: Replaced by `tracing_config`." | ||
type = string | ||
default = null | ||
|
||
validation { | ||
condition = anytrue([var.lambda_tracing_mode == null]) | ||
error_message = "DEPRECATED, Replaced by `tracing_config`." | ||
} | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "enable_event_rule_binaries_syncer" { | ||
description = "DEPRECATED: Replaced by `state_event_rule_binaries_syncer`." | ||
type = bool | ||
default = null | ||
validation { | ||
condition = var.enable_event_rule_binaries_syncer == null | ||
error_message = "DEPRECATED, Replaced by `state_event_rule_binaries_syncer`." | ||
} | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "enable_metrics_control_plane" { | ||
description = "(Experimental) Enable or disable the metrics for the module. Feature can change or renamed without a major release." | ||
type = bool | ||
default = null | ||
|
||
# depcreated | ||
validation { | ||
condition = var.enable_metrics_control_plane == null | ||
error_message = "The variable `enable_metrics_control_plane` is deprecated, use `metrics.enabled` instead." | ||
} | ||
} | ||
# Move deprecated variables to this file | ||
|
||
# EXAMPLE | ||
# tflint-ignore: terraform_unused_declarations | ||
variable "metrics_namespace" { | ||
description = "The namespace for the metrics created by the module. Merics will only be created if explicit enabled." | ||
type = string | ||
default = null | ||
# variable "name" { | ||
# description = "DEPRECATED: decription`." | ||
# type = string | ||
# default = null | ||
|
||
validation { | ||
condition = var.metrics_namespace == null | ||
error_message = "The variable `metrics_namespace` is deprecated, use `metrics.namespace` instead." | ||
} | ||
} | ||
# validation { | ||
# condition = ... | ||
# error_message = "DEPRECATED, Replaced by `...`." | ||
# } | ||
# } |