|
1 |
| -# tflint-ignore: terraform_unused_declarations |
2 |
| -variable "lambda_tracing_mode" { |
3 |
| - description = "DEPRECATED: Replaced by `tracing_config`." |
4 |
| - type = string |
5 |
| - default = null |
6 |
| - |
7 |
| - validation { |
8 |
| - condition = anytrue([var.lambda_tracing_mode == null]) |
9 |
| - error_message = "DEPRECATED, Replaced by `tracing_config`." |
10 |
| - } |
11 |
| -} |
12 |
| - |
13 |
| -# tflint-ignore: terraform_unused_declarations |
14 |
| -variable "enable_event_rule_binaries_syncer" { |
15 |
| - description = "DEPRECATED: Replaced by `state_event_rule_binaries_syncer`." |
16 |
| - type = bool |
17 |
| - default = null |
18 |
| - validation { |
19 |
| - condition = var.enable_event_rule_binaries_syncer == null |
20 |
| - error_message = "DEPRECATED, Replaced by `state_event_rule_binaries_syncer`." |
21 |
| - } |
22 |
| -} |
23 |
| - |
24 |
| -# tflint-ignore: terraform_unused_declarations |
25 |
| -variable "enable_metrics_control_plane" { |
26 |
| - description = "(Experimental) Enable or disable the metrics for the module. Feature can change or renamed without a major release." |
27 |
| - type = bool |
28 |
| - default = null |
29 |
| - |
30 |
| - # depcreated |
31 |
| - validation { |
32 |
| - condition = var.enable_metrics_control_plane == null |
33 |
| - error_message = "The variable `enable_metrics_control_plane` is deprecated, use `metrics.enabled` instead." |
34 |
| - } |
35 |
| -} |
| 1 | +# Move deprecated variables to this file |
36 | 2 |
|
| 3 | +# EXAMPLE |
37 | 4 | # tflint-ignore: terraform_unused_declarations
|
38 |
| -variable "metrics_namespace" { |
39 |
| - description = "The namespace for the metrics created by the module. Merics will only be created if explicit enabled." |
40 |
| - type = string |
41 |
| - default = null |
| 5 | +# variable "name" { |
| 6 | +# description = "DEPRECATED: decription`." |
| 7 | +# type = string |
| 8 | +# default = null |
42 | 9 |
|
43 |
| - validation { |
44 |
| - condition = var.metrics_namespace == null |
45 |
| - error_message = "The variable `metrics_namespace` is deprecated, use `metrics.namespace` instead." |
46 |
| - } |
47 |
| -} |
| 10 | +# validation { |
| 11 | +# condition = ... |
| 12 | +# error_message = "DEPRECATED, Replaced by `...`." |
| 13 | +# } |
| 14 | +# } |
0 commit comments