awless icon indicating copy to clipboard operation
awless copied to clipboard

Howto retrieve a file from s3?

Open MSSputnik opened this issue 7 years ago • 2 comments

I found no command to retrieve a file from s3.

search for a command simmilar to aws s3 cp s3://<bucket>/<path>/<file> <localfile>

currently used awless version is v0.1.11

MSSputnik avatar Aug 25 '18 06:08 MSSputnik

Same, it doesn't seems to be existing right now on version v0.1.11. There is a subcommand called copy which is possible to use using image and snapshot (cf. awless copy -h). It should be possible to implement the retrieve of a file from S3 using the new function bucket:

This could be implemented using the subcommand copy bucket:

awless copy [-r|--recursive] bucket s3://<bucket>/<path>/<file> <localfile>

Looking into to the code implementation, there is test case example how to make it happens here but it should requires some modifications.

sbz avatar Sep 28 '18 18:09 sbz

bucket should refer to a whole bucket. The contents of buckets (so called files) are named objects

dserodio avatar Dec 17 '18 15:12 dserodio