AWS IAM’s preview can tell analytics agents apart on a shared role, but not who asked
With distinct workload identities, CloudTrail and IAM policies can distinguish agents without a role per agent. That identity does not carry the analyst’s identity or grant warehouse table access.
Two analytics agents can use the same AWS IAM role and still appear as distinct callers in CloudTrail. In AWS’s agent and workload identity preview, AWS Security Token Service adds an identity to the role session after the compute service attests to facts about the workload. The role remains in place. The preview supports Amazon EKS, Bedrock AgentCore Runtime and AgentCore Gateway, where those services are available in commercial AWS Regions.
What an auditor can see
In AWS’s sample CloudTrail AssumeRole record, userIdentity.onBehalfOf names a workload using the checkout-sa service account in the payments namespace. It lists the workload’s subject, the identity provider’s ARN as issuer, and the template ARN. To see which workloads used a shared role, AWS suggests comparing the subjects across AssumeRole events with the same requestParameters.roleArn. For a downstream event without onBehalfOf, AWS says to match the session’s access key ID to the AssumeRole event. CloudTrail Event history excludes data events such as S3 GetObject; those require a trail configured to log them.
What a policy can distinguish
AWS’s bucket-policy example permits s3:GetObject when aws:OriginIdentity/Subject matches that checkout workload, aws:OriginIdentity/Issuer matches its provider, and aws:PrincipalOrgID matches the organization. The workload belongs in the policy’s conditions, not in Principal. Match the subject and issuer together: AWS says a subject is unique only within its provider. For a team with two reporting agents on one role, that lets a resource policy distinguish the callers by workload instead of relying on the role name alone. Check for existing grants separately; a narrower allow statement is not a denial.
What it does not prove
The IAM guide distinguishes workload identity from trusted identity propagation and says one role session carries one or the other, not both. If two analysts ask the same agent a question, the workload subject alone does not establish which analyst asked it. Nor does adding the identity issue a database grant: Redshift documents authorization to call the Data API separately from SQL privileges on tables and views. For a rollout, test both boundaries: can an auditor distinguish the two agents’ AWS calls, and does the warehouse enforce the intended access for each analyst?
sources
- AWS IAM preview announcementaws.amazon.com
- IAM preview overview and identity propagation boundarydocs.aws.amazon.com
- IAM CloudTrail logging and example eventdocs.aws.amazon.com
- IAM conditions and S3 policy exampledocs.aws.amazon.com
- Redshift Data API authorizationdocs.aws.amazon.com
- Redshift GRANT referencedocs.aws.amazon.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026