<p>I am using a service account with a role assigned to it using OIDC. I opened shell in the pod and checked current role,</p>
<p><a href="https://i.stack.imgur.com/57fNu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/57fNu.png" alt="enter image description here" /></a></p>
<p>but my service is doing the same thing but it is using node role,</p>
<p><a href="https://i.stack.imgur.com/UMFhZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UMFhZ.png" alt="enter image description here" /></a></p>
<h2>Versions of Java SDK</h2>
<ul>
<li>aws-java-sdk-core:1.11.505</li>
</ul>

<blockquote>
<p>The containers in your pods must use an AWS SDK version that supports
assuming an IAM role via an OIDC web identity token file.</p>
</blockquote>
<p>Check if you meet the minimum requirement for <a href="https://github.com/boto/boto3" rel="nofollow noreferrer">boto3</a> is 1.9.220, for <a href="https://github.com/boto/botocore" rel="nofollow noreferrer">botocore</a> is 1.12.200.</p>
