<p>I have a service account, and this needs access to multiple aws services. Is there any way we could specify multiple role an annotations, or do we expect to create a generic role and give access to all the required services?</p>
<p>The below not supported?</p>
<p><a href="https://i.stack.imgur.com/P45pP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P45pP.png" alt="enter image description here" /></a></p>
<p>ChatGPT says,</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>apiVersion: v1
kind: ServiceAccount
metadata:
  name: my-service-account
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::111111111111:role/my-role-1
    eks.amazonaws.com/role-arn: arn:aws:iam::111111111111:role/my-role-2</code></pre>
</div>
</div>
</p>

enthusiast
<p>yes its not supported like what you shown.</p>
<p>example supported:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: ServiceAccount
metadata:
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/xxxx
</code></pre>
<p>your options is to use 1 iam role arn like above, with multiple IAM policy attached. I don't think its hard to add multiple policy to a role.</p>
