Skip to content

Commit

Permalink
fix!: remove deprecated runners_scale_up_Lambda_memory_size as it bre…
Browse files Browse the repository at this point in the history
…aks 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.
  • Loading branch information
stefanrusu-loctax authored Dec 20, 2024
1 parent dd4591e commit a2280f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,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
8 changes: 0 additions & 8 deletions variables.deprecated.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ variable "enable_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
}

# 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."
Expand Down

0 comments on commit a2280f7

Please sign in to comment.