containers-roadmap
containers-roadmap copied to clipboard
[ECR] [Missing ECR Index for helm charts]: Please provide index.yaml for ecr-public repositories
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Tell us about your request The ECR gallery ( or public repo ) is missing an index file ( index.yaml ). Because of this certain tools ( the terraform helm provider in my case ) won't install the chart as it's not 100% compatible with public helm chart repositories.
Example from the bitnami helm repository:
Repository: https://charts.bitnami.com/bitnami Index file: https://charts.bitnami.com/bitnami/index.yaml
Which service(s) is this request for? ECR
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? I'm building and pushing helm charts to an ECR-Public repository on AWS. I'm trying to install these helm charts through the terraform helm provider.
This does not work due to a missing index file ( see additional context ).
Directly running the helm commands works.
Are you currently working around this issue? Yes. I can work around it using a null_resource, but I'd rather not in the long run. Alternatively I could try hosting it on a different public helm repository which generates the index.yaml file.
Additional context The error message is the following:
Error: looks like "https://public.ecr.aws/foo/bar" is not a valid chart repository or cannot be reached: failed to fetch https://public.ecr.aws/foo/bar/index.yaml : 401 Unauthorized
Sample code in terraform:
resource "helm_release" "foobar" {
repository = "https://public.ecr.aws/foo/bar"
chart = "foo-bar"
namespace = "foo"
name = "foo-bar"
version = "1.0.0"
}
Attachments If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)