Re:It's now possible to find the AWS Account ID for any S3 B...
by bjw4 on Monday February 26, 2024 @01:46PM
(#39515247)
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
[ Parent
| on HN ]
Re:It's now possible to find the AWS Account ID for any S3 B...
by vegardx on Monday February 26, 2024 @02:12PM
(#39515607)
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...