Y
Hacker News
new
|
ask
|
show
|
jobs
by
bjw4
849 days ago
Any tips on how to do the same for EC2 instances? Am aware of one that’s allegedly joined to our domain but can’t find it in any owned accounts
1 comments
vegardx
849 days ago
If you're lucky and it has a instance profile attached with appropriate role/policy attached you can use get caller identity to see what account it's running in:
https://docs.aws.amazon.com/cli/latest/reference/sts/get-cal...
link