-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambiguous JSON object required for ecr put-image
#8620
Comments
Hi @AndrewCharlesHay, thanks for reaching out. I did some testing, and it seems that the issue is related to |
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Sorry for the late response. My issue is that it's not an image though it's a Helm Chart so the |
Hi I have the same issue. In my case i want to apply the "latest" tag to my HELM chart on ECR aws ecr put-image --repository-name XXXXXX --image-tag latest --image-manifest "$MANIFEST"
An error occurred (InvalidParameterException) when calling the PutImage operation: Invalid parameter at 'ImageManifest' failed to satisfy constraint: 'Invalid JSON syntax' and my MANIFEST=$(aws ecr batch-get-image --repository-name XXXXX --image-ids imageTag="version-number" --output text --query 'images[].imageManifest') the output of my MANIFEST is as below : {
"schemaVersion":2,
"config":{
"mediaType":"application/vnd.cncf.helm.config.v1+json",
"digest":"sha256:91df0fe079fe78dasfdsafsadfsadfasdfafdasdfasf",
"size":126
},
"layers":[{
"mediaType":"application/vnd.cncf.helm.chart.content.v1.tar+gzip",
"digest":"sha256:a3ead2ddsadfasdfsafaefsfdsfafafsafasasf",
"size":11223
}]
} thanks for your help and please keep this response open until you find the root cause. Same here it is for a HELM chart not a docker image |
Hey, before I reach out to the service team, could you take a look at https://docs.aws.amazon.com/AmazonECR/latest/userguide/push-oci-artifact.html, and let me know if this process works for you? |
Describe the issue
I'm trying to pass the following JSON object in the
--image-manifest
argument to tag a helm chart but I keep getting the following error:An error occurred (InvalidParameterException) when calling the PutImage operation: Invalid parameter at 'ImageManifest' failed to satisfy constraint: 'Invalid JSON syntax'
The documentation gives an example of a JSON object related to Docker that mine JSON closely resembles but there is never any definition of what is required. I just have to guess and hope that it matches the expectations.
Links
https://docs.aws.amazon.com/cli/latest/reference/ecr/put-image.html
The text was updated successfully, but these errors were encountered: