I have figured it out! First, you need to authenticate as normal to AWS ECR and save the password in an environment variable like so...
export ECR_PASSWORD=$(aws ecr get-login-password --region $AWS_REGION)
Then you need to add ecr
as a repository in the helmfile.yaml
repositories:
- name: ecr
url: {{ requiredEnv "AWS_ACCOUNT_ID" }}.dkr.ecr.{{ requiredEnv "AWS_REGION" }}.amazonaws.com
oci: true
username: 'AWS'
password: '{{ requiredEnv "ECR_PASSWORD" }}'
Now, you can reference the repository in the releases
section
releases:
- name: helm-test-chart
chart: ecr/helm-test-chart
namespace: test
version: 0.1.0
...