Skip to content

Conversation

SanB16
Copy link
Contributor

@SanB16 SanB16 commented Jun 16, 2025

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

@SanB16 SanB16 changed the title chore(runtime): remove hardcoded value for runtime chore: remove hardcoded value for runtime Jun 16, 2025
@SanB16 SanB16 changed the title chore: remove hardcoded value for runtime Chore: Remove hardcoded value for runtime Jun 16, 2025
@SanB16 SanB16 changed the title Chore: Remove hardcoded value for runtime chore: Remove hardcoded value for runtime Jun 16, 2025
@antonbabenko antonbabenko changed the title chore: Remove hardcoded value for runtime feat: Allow changing runtime variable Jun 23, 2025
@antonbabenko antonbabenko merged commit 3502e45 into terraform-aws-modules:master Jun 23, 2025
7 checks passed
antonbabenko pushed a commit that referenced this pull request Jun 23, 2025
## [6.7.0](v6.6.0...v6.7.0) (2025-06-23)

### Features

* Allow changing runtime variable ([#252](#252)) ([3502e45](3502e45))
@antonbabenko
Copy link
Member

This PR is included in version 6.7.0 🎉

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants