aws-iam: Unable to use sts:AssumeRoleWithWebIdentity to assume a role #31128
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
Due to
aws-cdk/packages/aws-cdk-lib/aws-iam/lib/role.ts
Line 373 in 9acd528
This matters when using OIDC to assume a role over on AWS as you should only be able to do sts:AssumeRoleWithWebIdentity
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Users would be able to set which assumeRoleAction they want to use, as documented in https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.Role.html#:~:text=Description-,assumeroleaction,-string
Current Behavior
assumeRoleAction is always sts:AssumeRole
Reproduction Steps
Create a role
The text was updated successfully, but these errors were encountered: