Locate Instance

0

This is a little embarrassing but I created an ec2 instance some time ago and don't know the account or email associated with the instance. I have the pubic instance IP but cannot connect to the instance because I forgot the password.

The instance is active and running as RDP responds.

Thanks

질문됨 2년 전167회 조회
2개 답변
2

Hello,

Support will only be able to provide information of the account you have access to and where you open the case from as for security and privacy reasons, AWS Support can't disclose information from other Accounts. Here are few options:

  1. If you have AWS CLI installed and configured, you can run the following script to get the Account where the Instance belongs: $ aws sts get-caller-identity --query "Account" --output text
  2. In case CLI credentials are not configured, and since you can access the Instance via RDP, you can do a manual approach to deploy Ec2Launch and check the Instance ID and region if you configure the wallpaper to show such information (1). This will narrow it down to Availability Zone (thus the Region), Private IP as well so the CIDR would clue you in as to which of your Accounts have that range.
  3. Alternatively, if the Instance is managed by SSM and part of an organization, you can use SSM to gather Inventory for multiple accounts and regions (2).

I hope the information above is helpful!

References (1) EC2Launch v2 settings - https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch-v2-settings.html (2) Querying inventory data from multiple Regions and accounts - https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-inventory-query.html

AWS
지원 엔지니어
답변함 2년 전
1

I think it's best to contact AWS Support in your case.

profile picture
Sri
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠