aws / aws/aws-cli

`aws lambda wizard new-function` presents outdated list of runtimes

Open
#9,372 2 comments 0 reactions 1 assignee Claimed by @RyanFitzSimmonsAK View on GitHub
bug investigating lambda p3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the bug

The command `aws lambda wizard new-function` initially asks for a function name and then a runtime. The latter is presented as a combo box with a several options, many of which are obsolete.

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### Expected Behavior

The list of runtimes should be the list of currently-supported runtimes.

### Current Behavior

The list of runtimes appears to be hard-coded here: https://github.com/aws/aws-cli/blob/fed31fc877fac05142ca632d31db135cb9ddf570/awscli/customizations/wizard/wizards/lambda/new-function.yml#L12-L37

### Reproduction Steps

Run `aws lambda wizard new-function` and open the list of runtimes.

### Possible Solution

Update `awscli/customizations/wizard/wizards/lambda/new-function.yml` dynamically such that it's consistent with the current list of runtimes.

### Additional Information/Context

_No response_

### CLI version used

aws-cli/2.24.24 Python/3.12.9 Darwin/24.3.0 source/x86_64

### Environment details (OS name and version, etc.)

MacOS 15.3.1 (24D70)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.