If you have more than 50 instances in our main account, you will get a nextToken after the first list_instance request. Then switch to a sub-account, the first account's next token would be sent to the second account list_instance api call.
Expected Behavior
We can see sub-account instances listed.
Current Behavior
Lambda Unknown exception.
Reproduction Steps
Make sure you have more than 50 instances in main account
Create instance group
Switch account
See if you can see sub-account instances
Possible Solution
Remove next token in the api request if we switch AWS account.
Describe the bug
If you have more than 50 instances in our main account, you will get a nextToken after the first list_instance request. Then switch to a sub-account, the first account's next token would be sent to the second account list_instance api call.
Expected Behavior
We can see sub-account instances listed.
Current Behavior
Lambda Unknown exception.
Reproduction Steps
Possible Solution
Remove next token in the api request if we switch AWS account.
Additional Information/Context
No response
Solution Version
2.1.2
AWS Region. e.g., us-east-1
No response
Other information
No response