
Plenty of AWS teams push every container image to Amazon ECR, then run a second, separate system just to serve Helm charts: an S3 bucket with an index.yaml, a ChartMuseum pod, or a GitHub Pages branch. ECR stores Helm charts as OCI artifacts, so that second system can go. This post covers the problems it solves, what you gain, the ECR setup and how to push a chart.
What problem does an OCI chart registry solve?
A classic Helm repository is a web server plus one index.yaml file listing every chart version. Someone has to host it, secure it and rewrite that index on every release. An OCI registry drops the index. Each chart version is an artifact with its own tag, stored and authenticated exactly like a container image.
Here is each problem with an S3 or ChartMuseum repository, what it costs you, and how ECR removes it:
| Problem | What goes wrong with S3 or ChartMuseum | How ECR as an OCI registry fixes it |
|---|---|---|
| Index races | Two pipelines download index.yaml, add their entry and upload it. The last upload wins, so one chart version vanishes from the index while its .tgz stays in the bucket. | No shared index. Each version is its own tag, so parallel releases cannot overwrite each other. |
| Full index download | helm repo update fetches the whole file, which grows with every version ever published. | Clients fetch only the version they ask for. No helm repo add or helm repo update. |
| Second access model | Charts sit behind a bucket policy, ChartMuseum basic auth or a public URL, apart from the IAM rules on images. Two places to audit. | The same IAM and repository policies that protect your images. |
| Plugins in the delivery path | S3 needs the helm-s3 plugin on every client and deployment tool, which means custom images to build and patch. | Helm 3.8 and later speak OCI natively. No plugin. |
| Overwritten versions | A pipeline can republish 1.4.0 with different templates, so two clusters on the same version run different manifests. | Immutable tags reject a second push of the same version. |
| Extra publish steps | Upload the .tgz, then rebuild and upload index.yaml. | One helm push. |
| Weak audit trail | S3 access logs, only if someone enabled them. | CloudTrail records every push and pull API call. |
| Other regions | Your own copy job. | ECR replication rules. |
What do you gain by keeping charts in ECR?
You get one registry for everything you deploy. Charts and images share the same IAM policies, encryption, audit trail, replication and private network path, and there is no chart server left to patch, scale or back up. Releases also become reproducible, because a published chart version can never change.
| Advantage | What it means for you |
|---|---|
| No server to run | ECR is a managed service. There is no ChartMuseum pod, no bucket website and no index.yaml rebuild step in the pipeline. |
| One identity model | CI roles, IRSA and EKS Pod Identity pull charts with the same IAM permissions they already use for images. No basic auth passwords to rotate. |
| Reproducible releases and rollbacks | With immutable tags, orders 1.4.0 means the same templates in every account and every region, so rolling back to it gives you exactly what ran before. |
| Private by default | Clusters in private subnets pull charts through the same ECR interface endpoints they use for images, with no route to the internet. |
| Encryption and audit included | Charts are encrypted at rest like images, optionally with your own KMS key, and CloudTrail records who pushed or pulled each version. |
| Cross-account and cross-region sharing | A repository policy shares charts with other accounts, and replication rules copy them to other regions with no copy job. |
| Chart dependencies from the same registry | An umbrella chart can list oci:// repositories under dependencies in Chart.yaml, so helm dependency update pulls subcharts from ECR too. |
| Housekeeping with lifecycle rules | The same lifecycle policies you use for images can clean up untagged artifacts left behind by failed pushes. |
What do you need before you start?
You need Helm 3.8 or later, where OCI support is on by default, and the AWS CLI v2. AWS recommends Helm 3.9 or later for compatibility with current EKS versions. The example splits the work between a shared tooling account that owns the charts and a workload account that runs the cluster, all in us-east-1.
| Item | Value in this post |
|---|---|
| Helm | 3.8 or later (3.9 or later recommended) |
| AWS CLI | v2 |
| Region | us-east-1 |
| Tooling account (owns the charts) | 111111111111 |
| Workload account (runs the cluster) | 222222222222 |
| Repository namespace | charts/ |
| Example chart and repository | orders in charts/orders |
Keeping every chart under its own charts/ prefix keeps charts apart from image repositories and lets one template and one policy cover all of them.
How do you set up ECR so a push just works?
Create a repository creation template for the charts prefix that applies on push. Since December 2025, ECR creates a missing repository when a push arrives and a matching template exists. Without a matching template the push fails, so the template decides the settings every chart repository gets.
The template below makes tags immutable and attaches a repository policy that lets the workload account pull. Save the policy as charts-repo-policy.json:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowWorkloadAccountPull",
"Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam::222222222222:root" },
"Action": [
"ecr:BatchGetImage",
"ecr:GetDownloadUrlForLayer",
"ecr:BatchCheckLayerAvailability"
]
}
]
}aws ecr create-repository-creation-template \
--prefix charts \
--applied-for CREATE_ON_PUSH \
--image-tag-mutability IMMUTABLE \
--repository-policy file://charts-repo-policy.json \
--description "Helm charts pushed from CI" \
--region us-east-1If your account does not have create on push yet, create each repository by hand with aws ecr create-repository --repository-name charts/orders and the same settings. The repository name must match the chart name in Chart.yaml, because Helm appends the chart name to the push URL.
How do you push a chart to ECR?
Package the chart, log Helm in to the registry with a token from aws ecr get-login-password, then push to an oci:// URL that ends at the namespace, not at the chart. Helm adds the chart name and uses the chart version as the tag, so orders 1.4.0 lands in charts/orders:1.4.0.
REGISTRY=111111111111.dkr.ecr.us-east-1.amazonaws.com
helm package ./orders
# Successfully packaged chart and saved it to: ./orders-1.4.0.tgz
aws ecr get-login-password --region us-east-1 \
| helm registry login --username AWS --password-stdin "$REGISTRY"
helm push orders-1.4.0.tgz "oci://$REGISTRY/charts"Check what ECR stored. The artifactMediaType should be the Helm config type, which is how you tell a chart from an image in the same registry:
aws ecr describe-images \
--repository-name charts/orders \
--region us-east-1 \
--query 'imageDetails[].[imageTags[0],artifactMediaType]' \
--output text
# 1.4.0 application/vnd.cncf.helm.config.v1+jsonAnyone with pull access can now install or inspect the chart without adding a repository first. There is no helm repo add and no helm repo update for OCI:
helm show chart oci://$REGISTRY/charts/orders --version 1.4.0
helm install orders oci://$REGISTRY/charts/orders --version 1.4.0 -n orders --create-namespaceWhich mistakes are easy to make?
Four come up again and again. Pushing to a URL that already includes the chart name, which creates charts/orders/orders. Reusing an image lifecycle policy that expires old chart versions, which breaks rollbacks. Build metadata in versions. And the 12 hour login token, which catches anything that pulls charts for longer than a single job.
- Push URL. Push to
oci://$REGISTRY/charts. Install fromoci://$REGISTRY/charts/orders. The two URLs differ on purpose. - Lifecycle rules. If you keep the lifecycle rules you use for images, scope them so they never expire a chart version a cluster might roll back to. Keep every tagged chart version and only expire untagged artifacts.
- Build metadata. OCI tags cannot contain
+, so Helm stores a version like1.4.0+build.7as the tag1.4.0_build.7. Avoid build metadata in chart versions if people search tags by hand. - Token lifetime.
get-login-passwordreturns a token valid for 12 hours in the region that issued it. That is fine for a CI job. Anything long running that pulls charts has to request a new token on a schedule.
The charts already in your old repository can move in one loop: helm pull each version from the old repository, then helm push it to ECR. Keep the old repository read only until every pipeline and cluster installs from ECR. If you also need the charts in a second region, the ECR replication post covers rules and backfill, and charts replicate the same way images do.
At this point ECR holds versioned, immutable charts behind the same IAM model as your images, and the separate chart repository, its index and its credentials can be retired.

About Hardik Shah
Hardik moves Helm charts off S3 and ChartMuseum and into ECR on the EKS platforms he builds, so charts and images share one registry and one IAM model.