Skip to content

Unable to update the runtime from the root moduleΒ #251

@SanB16

Description

@SanB16

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:

  1. Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
  2. Re-initialize the project root to pull down modules: terraform init
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions