-
-
Notifications
You must be signed in to change notification settings - Fork 347
Closed
Description
Description
When its required to update the runtime version, unable to update it as its hardcoded.
module "lambda" {
runtime = "python3.11"
}
If your request is for a new feature, please use the Feature request
template.
- β I have searched the open/closed issues and my issue is not listed.
β οΈ Note
Before you submit an issue, please perform the following first:
- Remove the local
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
- Re-initialize the project root to pull down modules:
terraform init
- Re-attempt your terraform plan or apply and check if the issue still persists
Versions
- Module version [Required]:
source = "terraform-aws-modules/notify-slack/aws"
version = "6.5.0" - Terraform version: 1.11.3
- Provider version(s): 1.11
Reproduction Code [Required]
Steps to reproduce the behavior:
Run by specifying the module. Hardcoded value is python3.11
module "notify_slack" {
source = "terraform-aws-modules/notify-slack/aws"
version = "~> 6.5.0"
runtime = "python3.13"
}
OR
module "notify_slack" {
source = "terraform-aws-modules/notify-slack/aws"
version = "~> 6.5.0"
runtime = var.runtime
}
β Error: Unsupported argument β β on main.tf line 37, in module "notify_slack": β 37: runtime = var.runtime β β An argument named "runtime" is not expected here.
Expected behavior
Should be able to update the runtime verison (pythonx.x or nodex.y)
Actual behavior
Terminal Output Screenshot(s)
Additional context
Module terraform-aws-modules/lambda/aws
is accepting var.runtime
, but not terraform-aws-modules/notify-slack/aws
module as the runtime is hardcoded
Metadata
Metadata
Assignees
Labels
No labels