I am having an issue where if I use variables on a step that is also using oidc: true, the OIDC part is not available.
I am getting the following error:
An error occurred (InvalidIdentityToken) when calling the AssumeRoleWithWebIdentity operation: No OpenIDConnect provider found in your account for
https://api.bitbucket.org/2.0/workspaces/WORKSPACE/pipelines-config/identity/oidcFound out the real issue.
Basically one of my variables was AWS_PROFILE and even though it was the correct one, I think it has somes conflicts with awscli in the idea that it is misconfiguring for the OpenID Connect.
Hi Alin,
Welcome to the community!
The "InvalidIdentityToken" error occurs when there is a mismatch in the audience claim within the identity token used during deployment. The audience claim indicates who the token is intended for and must correspond with the client ID issued by your application's identity provider. If the audience claim in the identity token does not match the expected client ID for the IAM role in AWS, the AssumeRoleWithWebIdentity operation will fail, generating an "Incorrect token audience" error message.
The following steps should help address the issue,
I hope this helps.
- Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Phil,
Thanks a lot for getting back.
Wouldn't this also reproduce for the same pipeline (same code) but without using variables? Which is not the case, I can definitely run the pipeline without variables.
In any case, I have double checked the audience and everything seems correct. Again, I can run the pipeline, but without variables and "hard-coding" the values from the variables.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.