Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instances can not be listed if account is switched on the Instance Group list page #291

Closed
owenCCY opened this issue May 27, 2024 · 0 comments · Fixed by #294
Closed

Instances can not be listed if account is switched on the Instance Group list page #291

owenCCY opened this issue May 27, 2024 · 0 comments · Fixed by #294
Labels
bug Something isn't working

Comments

@owenCCY
Copy link
Contributor

owenCCY commented May 27, 2024

Describe the bug

image
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

  1. Make sure you have more than 50 instances in main account
  2. Create instance group
  3. Switch account
  4. See if you can see sub-account instances

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

@owenCCY owenCCY added the bug Something isn't working label May 27, 2024
@JoeShi JoeShi changed the title EC2 Cross account: Instances can not be listed if account is switched Instances can not be listed if account is switched on the Instance Group list page Jun 3, 2024
@wchaws wchaws linked a pull request Jun 20, 2024 that will close this issue
1 task
@JoeShi JoeShi moved this to v2.2.X (May. 2024) in Centralized Logging with OpenSearch Roadmap Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants