Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit a2280f7

Browse files
fix!: remove deprecated runners_scale_up_Lambda_memory_size as it breaks CDKTF (#4276)
Hi. Thanks for this module. I come from a CDKTF shop. CDKTF basically has a code generator based on the HCL code which generates the appropriate objects and types. TypeScript uses camel case as default convention for symbols so that code generator produces invalid code as both the current `runners_scale_up_lambda_memory_size` and the legacy `runners_scale_up_Lambda_memory_size` are converted to the same camel cased string and the TypeScript compiler rejects that code when imported as it contains duplicate symbols. Removing this deprecated variable enables the CDKTF users who run into this problem to successfully use this module. This is a breaking change but I don't know for how long you do keep deprecated vars.
1 parent dd4591e commit a2280f7

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ module "runners" {
219219
lambda_runtime = var.lambda_runtime
220220
lambda_architecture = var.lambda_architecture
221221
lambda_zip = var.runners_lambda_zip
222-
lambda_scale_up_memory_size = coalesce(var.runners_scale_up_Lambda_memory_size, var.runners_scale_up_lambda_memory_size)
222+
lambda_scale_up_memory_size = var.runners_scale_up_lambda_memory_size
223223
lambda_scale_down_memory_size = var.runners_scale_down_lambda_memory_size
224224
lambda_timeout_scale_up = var.runners_scale_up_lambda_timeout
225225
lambda_timeout_scale_down = var.runners_scale_down_lambda_timeout

variables.deprecated.tf

-8
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ variable "enable_event_rule_binaries_syncer" {
2121
}
2222
}
2323

24-
25-
# tflint-ignore: terraform_naming_convention
26-
variable "runners_scale_up_Lambda_memory_size" {
27-
description = "Memory size limit in MB for scale-up lambda."
28-
type = number
29-
default = null
30-
}
31-
3224
# tflint-ignore: terraform_unused_declarations
3325
variable "enable_metrics_control_plane" {
3426
description = "(Experimental) Enable or disable the metrics for the module. Feature can change or renamed without a major release."

0 commit comments

Comments
 (0)