Hello,
I've been utilizing Bitbucket Pipelines for several years without issue. However, recently, I've encountered intermittent connection issues to AWS, specifically when steps in my pipeline attempt to assume roles using OpenID Connect (OIDC). The error message is as follows:
<span>An</span> <span>error</span> <span>occurred</span> (InvalidIdentityToken) <span>when</span> calling the AssumeRoleWithWebIdentity <span>operation</span>: No OpenID Connect provider found in your account for <span>https</span>:<span>//api.bitbucket.org/2.0/workspaces/*****/pipelines-config/identity/oidc</span>
I haven't made any changes to my pipeline configuration or AWS setup that could have led to this issue. Interestingly, the problem isn't consistent: some steps within the same pipeline fail due to this error, while others execute successfully. In a different pipeline, a step might fail with this error on the first attempt but succeed on subsequent retries.
Could this be related to a change in Bitbucket's or AWS's handling of OIDC? Has anyone else experienced similar issues, or does anyone have insights on how to resolve this problem?
Thank you for your assistance,
Eyal Yaish