sts:AssumeRoleWithWebIdentity is a Write access-level action in the sts service. Grants permission to obtain a set of temporary security credentials for users who have been authenticated in a mobile or web application with a web identity provider
ARNs that sts:AssumeRoleWithWebIdentity can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants sts:AssumeRoleWithWebIdentity.
Filters access by the Google application ID
Filters access by the Google Cloud or Google Workspace organization number
Filters access by the Google audience
Filters access by the subject of the claim (the Google user ID)
Filters access by the git branch that triggered the Buildkite build
Filters access by the Buildkite cluster ID
Filters access by the Buildkite cluster name
Filters access by the Buildkite organization ID
Filters access by the Buildkite organization slug
Filters access by the Buildkite pipeline ID
Filters access by the Buildkite pipeline slug
Filters access by the git branch that triggered the Buildkite build
Filters access by the Buildkite cluster ID
Filters access by the Buildkite cluster name
Filters access by the Buildkite organization ID
Filters access by the Buildkite organization slug
Filters access by the Buildkite pipeline ID
Filters access by the Buildkite pipeline slug
Filters access by the git branch that triggered the Buildkite build
Filters access by the Buildkite cluster ID
Filters access by the Buildkite cluster name
Filters access by the Buildkite organization ID
Filters access by the Buildkite organization slug
Filters access by the Buildkite pipeline ID
Filters access by the Buildkite pipeline slug
Filters access by the tags that are passed in the request
Filters access by the tag keys that are passed in the request
Filters access by the login information for Amazon Cognito
Filters access by the Amazon Cognito identity pool ID
Filters access by the subject of the claim (the Amazon Cognito user ID)
Filters access by the personal account that initiated the workflow run
Filters access by the ID of the personal account that initiated the workflow run
Filters access by the ID of the enterprise that contains the repository from where the workflow is running
Filters access by the name of the environment used by the job
Filters access by the reference path to the reusable workflow for jobs using a reusable workflow
Filters access by the git ref (branch or tag) that triggered the workflow run
Filters access by the repository from where the workflow is running
Filters access by the ID of the repository from where the workflow is running
Filters access by the ID of the repository owner from where the workflow is running
Filters access by the name of the workflow
Filters access by the GitLab namespace (group) ID of the project running the CI/CD job
Filters access by the source that triggered the GitLab pipeline
Filters access by the GitLab project ID running the CI/CD job
Filters access by whether the GitLab git ref that triggered the job is protected
Filters access by the GitLab runner environment for the CI/CD job
Filters access by the GitLab user access level within the project
Filters access by the GitLab user email executing the CI/CD job
Filters access by the GitLab user ID executing the CI/CD job
Filters access by the GitLab username executing the CI/CD job
Filters access by the Facebook application ID
Filters access by the Facebook user ID
Filters access by the OCI resource principal session token ID
Filters access by the CircleCI project ID
Filters access based on whether the identity provider authorized the role via the roles claim in the OIDC token
Filters access by the role session name required when you assume a role
Filters access by the source identity that is passed in the request
Filters access by the transitive tag keys that are passed in the request
Filters access by the personal account that initiated the workflow run
Filters access by the ID of the personal account that initiated the workflow run
Filters access by the ID of the enterprise that contains the repository from where the workflow is running
Filters access by the name of the environment used by the job
Filters access by the reference path to the reusable workflow for jobs using a reusable workflow
Filters access by the git ref (branch or tag) that triggered the workflow run
Filters access by the repository from where the workflow is running
Filters access by the ID of the repository from where the workflow is running
Filters access by the ID of the repository owner from where the workflow is running
Filters access by the name of the workflow
Filters access by the personal account that initiated the workflow run
Filters access by the ID of the personal account that initiated the workflow run
Filters access by the ID of the enterprise that contains the repository from where the workflow is running
Filters access by the name of the environment used by the job
Filters access by the reference path to the reusable workflow for jobs using a reusable workflow
Filters access by the git ref (branch or tag) that triggered the workflow run
Filters access by the repository from where the workflow is running
Filters access by the ID of the repository from where the workflow is running
Filters access by the ID of the repository owner from where the workflow is running
Filters access by the name of the workflow
Filters access by the personal account that initiated the workflow run
Filters access by the ID of the personal account that initiated the workflow run
Filters access by the ID of the enterprise that contains the repository from where the workflow is running
Filters access by the name of the environment used by the job
Filters access by the reference path to the reusable workflow for jobs using a reusable workflow
Filters access by the git ref (branch or tag) that triggered the workflow run
Filters access by the repository from where the workflow is running
Filters access by the ID of the repository from where the workflow is running
Filters access by the ID of the repository owner from where the workflow is running
Filters access by the name of the workflow
Filters access by the Login with Amazon application ID
Filters access by the Login with Amazon user ID
Filters access by the tags associated with the resource
Filters access by the tags that are attached to the role that is being assumed
A minimal policy that allows sts:AssumeRoleWithWebIdentity. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowStsAssumeRoleWithWebIdentity",
"Effect": "Allow",
"Action": "sts:AssumeRoleWithWebIdentity",
"Resource": "*"
}
]
}