When you use the AWS CLI with an IAM role via an OIDC web identity provider (for workloads outside AWS), which OAuth2/OIDC flow is typically involved?
Answer
OAuth 2.0 Authorization Code flow is not used; instead AWS STS assumes a role with web identity (AssumeRoleWithWebIdentity)
Explanation
For workloads using identity federation with a web identity token, AWS typically uses STS AssumeRoleWithWebIdentity to obtain temporary credentials. This is different from typical OAuth client-secret based flows.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which AWS service is primarily responsible for orchestrating automated, rule-based workflows that can span multiple AWS services (e.g., invoke Lambda, call Step Functions, send notifications)?
View question →
A CI/CD pipeline needs to build an artifact, run integration tests, and then deploy only if tests pass. Which AWS approach is most aligned with this requirement?
View question →
In AWS Key Management Service (KMS), which concept is most important to understand for designing fine-grained data encryption access for logs, S3 objects, and applications?
View question →
You see frequent ECS task restarts during a deployment. Which ECS configuration best prevents tasks from being killed before they can finish processing requests?
View question →
You need to run an application container image that changes frequently and you want rollback to a known-good version. Which approach best fits using Amazon ECR?
View question →
For AWS CloudWatch Logs, which action most directly helps reduce ingestion costs while retaining error data for analysis?
View question →