Warm tip: This article is reproduced from stackoverflow.com, please click
amazon-s3 amazon-web-services single-sign-on saml-2.0

Find who created a s3 bucket in federated AWS account

发布于 2020-03-31 22:57:57

My entire team accesses a single AWS account through federated login. Apart from my team, only admin (root user) has access to this account. But the root user is only for administration purpose.

We all login to the AWS console through a SAML-based SSO. The navbar of the AWS console shows the user info as:

Federated Login: TEAM-NAME/email.of.logged.in.user@organization.com

Account: 1234-5678-1234

Since it is a single account, the account id is common for all federated users. But the emails are their own. Also, on clicking "My Account" link in navbar, the account name is shown as

assumed-role/TEAM-NAME/email.of.logged.in.user@organization.com

A part of my project is to identify the creator of some AWS resources. Now, suppose a bucket was created by some federated user. Can I, another federated user, track who (email) created this bucket? What about other kind of resources (not just s3 buckets)?

Questioner
mrpandey
Viewed
81
matesio 2020-01-31 20:43

You can track that using the Amazon cloud trail. But as a federated user, you will have to make sure that you have Amazon Cloud Trail access. Once you've Cloud Trail access you can filter the bucket name using Resource Name filter.