You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running awscli upload fails with the following error : "aws: error: argument command: Invalid choice, valid choices are:" (followed by a long list of options).
What should've happened instead?
Upload successful on S3.
Additional details
With the exact same setup it works with previous awscli docker image.
I took more time to understand the error. The upload script is not executed. The Amazon aw-cli image differs from garland image. It has an ENTRYPOINT ["/usr/local/bin/aws"]. The ENTRYPOINT takes precedence over CMD and is always run. So the effective command that is executed is: /usr/local/bin/aws upload. Upload is not a valid choice of argument for the aws command.
We need to clear the ENTRYPOINT in the derived image in order to execute the upload or download scripts passed as parameter. I will give it a try later today and report back.
What happened?
Running
awscli upload
fails with the following error : "aws: error: argument command: Invalid choice, valid choices are:" (followed by a long list of options).What should've happened instead?
Upload successful on S3.
Additional details
With the exact same setup it works with previous awscli docker image.
e.g.:
"FROM docker.io/amazon/aws-cli:2.15.58" ==> failure
"FROM "docker.io/garland/aws-cli-docker:1.16.140" ==> success
The text was updated successfully, but these errors were encountered: