If you use aws3ls
or aws3cp
in aws-cli, you can use
In principle, I feel like I can put it on a trap.
By tapping aws-cli internally, is it possible to achieve access to s3 with Trump?
If possible, how can I achieve this?
(if possible, how will it happen?)
If this is too broad a question, I would like to ask you about the following:
In order to add a method for tramp, I think we can do this by adding a new method definition to tramp-method
.Tramp-methods, however, may have items like tramp-remote-shell
that might not be used in this case, so after all, I don't know what to specify.
Q.
aws3ls
is the command to get the file list as a string when you specify the location of s3, and aws3cp
is the command to upload the file to s3, such as scp.
There is a wrapper-like tool called s3ed for editing files on Amazon S3 from Emacs.This appears to be downloading the file to the directory /tmp/s3ed/ (not tramp) and uploading it to S3 when saved.
mattusifer/s3ed:An interface to s3 from emacs
Although s3ed does not utilize Trump, it uses aws3ls
or aws3cp
internally.
https://github.com/mattusifer/s3ed/blob/13503cb057bed29cb00a14dffe4472b5cb7748ad/s3ed-io.el
It may be possible to combine this code with Trump.I hope it will be helpful.
© 2024 OneMinuteCode. All rights reserved.