Skip to content

Commit

Permalink
fix: remove deprecated variables
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Aug 16, 2024
1 parent d1e407f commit 85f0a46
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 29 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ module "runners" {
lambda_runtime = var.lambda_runtime
lambda_architecture = var.lambda_architecture
lambda_zip = var.runners_lambda_zip
lambda_scale_up_memory_size = coalesce(var.runners_scale_up_Lambda_memory_size, var.runners_scale_up_lambda_memory_size)
lambda_scale_up_memory_size = var.runners_scale_up_lambda_memory_size
lambda_scale_down_memory_size = var.runners_scale_down_lambda_memory_size
lambda_timeout_scale_up = var.runners_scale_up_lambda_timeout
lambda_timeout_scale_down = var.runners_scale_down_lambda_timeout
Expand Down
40 changes: 12 additions & 28 deletions variables.deprecated.tf
Original file line number Diff line number Diff line change
@@ -1,30 +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`."
}
}
# Move deprecated variables to this file

# EXAMPLE
# 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_naming_convention
variable "runners_scale_up_Lambda_memory_size" {
description = "Memory size limit in MB for scale-up lambda."
type = number
default = null
}
# variable "name" {
# description = "DEPRECATED: decription`."
# type = string
# default = null

# validation {
# condition = ...
# error_message = "DEPRECATED, Replaced by `...`."
# }
# }

0 comments on commit 85f0a46

Please sign in to comment.