Get Wafv2 Web ACL freezes the terminal
Describe the bug
Attempting to get a Wafv2 Web ACL makes the terminal freeze.
Expected Behavior
Interactive mode displaying required parameters immediately when selecting the operation.
Current Behavior
The terminal freezes when selecting the operation.
Reproduction Steps
- Make sure the CLI is configured for interactive mode, I am setting the variable AWS_CLI_AUTO_PROMPT to on-partial in my terminal
- Start an interactive session by for example running "aws wafv2"
- Start typing "get-web-acl" and select it
- The terminal should freeze at this point
Possible Solution
No response
Additional Information/Context
Other get operations such as "aws lambda get-function" displays available parameters just fine. I assume something must be off with the config for get webacl.
CLI version used
2.11.21
Environment details (OS name and version, etc.)
macOS Big Sur, Version 11.7.6
Thanks @castodius for reporting this issue. I could reproduce this as well. It's strange that it's just occurring for aws wafv2 get-web-acl.
At this auto-prompt screen I tried to go down and select an option and that works after ~10 seconds (but the options never get highlighted when I press the up and down arrows):
Some further review is needed here into what could be causing this and which other commands may be affected.
Update: the issue here probably has to do with the size of this documentation model: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/wafv2/get-web-acl.html. Loading the model is causing the delay in auto-prompt mode. We will continue to track this issue.