How can I obtain an AWS Role trust condition specifically the Assume Role Policy Document?

 This will allow us to check principal federated roles and it's conditions.

Answers

  • Try the following query:
    FIND AccessRole with _source = "integration-managed" AS role 
      THAT TRUSTS AS t * AS ext 
    WHERE 
      t.conditional = true 
    RETURN
      t.conditions, t.principal, t.principalType, role.name, ext.displayName, ext._type

This Month's Leaders