An external ID is a value used in an AWS IAM role’s trust policy to help protect third-party access from the confused-deputy problem. A customer gives a unique value to a vendor, and the vendor includes it when requesting that AWS STS assume the customer’s role. The trust policy can require that value as a condition.
This helps ensure that a third party assumes a role on behalf of the intended customer, rather than another party exploiting the vendor’s broader access. External IDs are not passwords or proof that a request is safe: anyone who obtains the value may be able to use it if other controls permit. Use a distinct value for each customer relationship, limit the role’s permissions, review trust policies regularly, and monitor role-assumption activity.


