I'm submitting a ...
What is the current behavior?
Running cdk context outputs a table with indices for the current context entries. On the bottom of the output there's a text Run cdk context --reset KEY_OR_NUMBER to remove a context key. It will be refreshed on the next CDK synthesis run.. However, running cdk context --reset 1 will error with:
No context key with number: 1
What is the expected behavior?
Resetting a context entry works when passed a number.
Please tell us about your environment:
Other information
I debugged this a bit and it seems that regardless of the amount of context entries, the index to key mapping will _always_ be [[1, 'bags']]; I'm guessing the context is now wrapped in a distinct Context structure which the reset functionality does not take into account.
still true as of version CDK CLI Version: 1.44.0
I have just come across this bug using 1.54.0.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Most helpful comment
still true as of version CDK CLI Version: 1.44.0