Web identities
Assuming roles with web identities
AWS supports assuming roles using web identity federation and OpenID Connect, including login using Amazon, Google, Facebook or any other OpenID Connect server. The configuration options are as follows:
web_identity_token_fileA file that contains an OpenID Connect identity token. The token is loaded and passed as theWebIdentityTokenargument of theAssumeRoleWithWebIdentityoperation.web_identity_token_processA command that executes to generate an OpenID Connect identity token. The token written to the command’s standard out is passed as theWebIdentityTokenargument of theAssumeRoleWithWebIdentityoperation. This is a custom option supported only byaws-vault.
An example configuration using a static token:
[profile role1]
role_arn = arn:aws:iam::22222222222:role/role1
web_identity_token_file = /path/to/token.txtAn example using a token generated by an external command:
[profile role2]
role_arn = arn:aws:iam::33333333333:role/role2
web_identity_token_process = oidccli rawLast updated on