dhmlops / mlops

1 stars 0 forks source link

ECS. Able to view, but unable to download files from bucket. #11

Closed jxk20 closed 2 years ago

jxk20 commented 2 years ago

I am able to use the ls command on both AWS CLI and Minio CLI to view the files in my project's bucket. Both aws s3 ls --endpoint-url https://<ECS URL> s3://<bucket-name>/this/path/ and mc ls s3/<bucket-name>/this/path/ will list the files in the folder. However, I face the following errors when I try to download them onto my local drive.

E.g.

On AWS CLI

$ aws s3 cp --endpoint-url https://<ECS URL> s3://<bucket-name>/this/path/object.jpeg object.jpeg
fatal error: An error occured (403) when calling the HeadObject operation: Forbidden

On Minio

$ mc cp s3/<bucket-name>/this/path/object.jpeg .
mc: <ERROR > Unable to validate source ''s3/<bucket-name>/this/path/object.jpeg".

Not sure if this is related to https://github.com/dhmlops/mlops/issues/4

jxk20 commented 2 years ago

Resolved issue by creating new IAM user.