aws / aws/aws-toolkit-visual-studio

Max Memory In "Publish To AWS Lambda" Wizard Is "3008"

Open
#362 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
135
Forks
37
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When attempting to publish an AWS Lambda using the wizard, the max memory value in the drop down list is 3008 so I cannot publish for a desired memory value of 4096. For a Lambda which is already published and configured in AWS for 4096, when I attempt to re-publish, the value of 4096 is not read in and the drop down list does not have any value selected. If I try to publish without a memory value selected, the extension crashes.

**To Reproduce**
1. Right click an AWS Lambda project and choose Publish to AWS Lambda...
2. Try to select a value for Memory greater than 3008

**Expected behavior**
The drop down values should include values from 128 to 10240 as indicated by this statement on the AWS Lambda General configuration view in the webpage in the AWS webapp "Set memory to between 128 MB and 10240 MB".

**Screenshots**
![20230913-105121](https://github.com/aws/aws-toolkit-visual-studio/assets/121048310/3e14e8c4-77e4-4786-9f15-81d911f2d326)
![20230913-105150](https://github.com/aws/aws-toolkit-visual-studio/assets/121048310/eb36a2a5-dac1-46c2-9569-0fe2ff9d3ea2)

**Computer (please complete the following information):**

- Windows Version: 11
- Visual Studio Version: 17.4.5
- AWS Toolkit for Visual Studio Version: 1.43.0.0

**Additional context**
I am also attaching a screenshot of the info tip that is displayed when I hover the Memory drop down list. It incorrectly states that increments can only go to a max of 1024. That is less than the 3008 which is in the drop down and less than 10240 actual. Maybe it is just missing a trailing "0" for the 10240.

Contributor guide

Open the contributing guide

Research direction

Start at the Publish to AWS Lambda wizard and trace how the Memory dropdown values, existing configuration, and empty selection are handled. Verify the wizard supports the stated 128–10240 MB range, preserves a configured 4096 MB value, avoids crashing without a selection, and displays accurate increment guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.