<p>I want to deploy helm charts, which are stored in a repository in AWS ECR, in the kubernetes cluster using ArgoCD. But I am getting a 401 unauthorized issue. I have pasted the entire issue below</p>
<pre><code>Unable to create application: application spec is invalid: InvalidSpecError: Unable to get app details: rpc error: code = Unknown desc = `helm chart pull &lt;aws account id&gt;.dkr.ecr.&lt;region&gt;.amazonaws.com/testrepo:1.1.0` failed exit status 1: Error: unexpected status code [manifests 1.1.0]: 401 Unauthorized
</code></pre>

<p>Yes, you can use ECR for storing helm charts (<a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/push-oci-artifact.html" rel="noreferrer">https://docs.aws.amazon.com/AmazonECR/latest/userguide/push-oci-artifact.html</a>)</p>
<p>I have managed to add the repo to ArgoCD, but the token expires so it is not a complete solution.</p>
<pre><code>argocd repo add XXXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com --type helm --name some-helmreponame --enable-oci --username AWS --password $(aws ecr get-login-password --region us-east-1)
</code></pre>
