'How to get list of the ec2 instance on the member account

I have created an aws account via AWS Organization through aws cli. How can I get the list of ec2 instances on the created member aws account? How can I access it without recovering root password?



Solution 1:[1]

Since the member AWS account has been created recently, there would not be any EC2 instances (or any other resources) created in it.

In order to access the account without recovering password, you can use the "Switch Role" feature as described here - https://aws.amazon.com/premiumsupport/knowledge-center/organizations-member-account-access/

Once you're able to login, you could create your access keys and run CLI commands.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vishwas M.R