Skip to content
IAM Policy Generator

External ID

An external ID is a value that a third party presents when it assumes a role in your account, set as an sts:ExternalId condition in the role's trust policy. It prevents the confused deputy problem for third-party access. AWS does not treat it as a secret, and it is from 2 to 1,224 characters long.

All terms ยท Open the workbench

An example, sourced

AWS says the primary function of the external ID is to address and prevent the confused deputy problem, that it is not treated as a secret because anyone who can view the role can see it, and that it should not be something guessable such as the name of the third party.

Why it matters here

A trust policy that names a third party's account with no external ID leaves the confused deputy gap open. The workbench flags that case.

Sources

  1. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html, read 16 Nov 2026

Last reviewed 16 Nov 2026.