title: Aws ecs fargate ResourceInitializationError: unable to pull secrets or registry auth
body: <p>I am trying to run a private repository on aws-ecs-fargate-1.4.0 platform.</p>
  
  <p>For private repository authentication, I have followed the <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/private-auth.html" rel="noreferrer">docs</a> and it was working well.</p>
  
  <p>Somehow after updating existing service many times it goes fail to run the task and complain the error like </p>
  
  <pre><code>ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to get registry auth from asm: service call has been retried 1 time(s): asm fetching secret from the service for &lt;secretname&gt;: RequestError: ...
  </code></pre>
  
  <p>I haven't change the <code>ecsTaskExecutionRole</code> and it contains all required policies to fetch secret value.</p>
  
  <ol>
  <li>AmazonECSTaskExecutionRolePolicy</li>
  <li>CloudWatchFullAccess</li>
  <li>AmazonECSTaskExecutionRolePolicy</li>
  <li>GetSecretValue</li>
  <li>GetSSMParamters</li>
  </ol>