How to edit files in AWS S3 in the browser?

2019-01-26 03:48发布

问题:

I have hosted my Homepage over Amazon's S3 system. In order to change information on the page, currently, I have to change the file on my computer and upload the new version. However, I would like to directly change the file in the S3 bucket within a browser (to change it anywhere).

Is there a cloud-based text editor that can use S3 as a "file system" and would allow me to change text files (e.g., html, css, js, etc.)?

回答1:

You can use the free CloudBerry Explorer for Amazon S3 to browse, set up your buckets, upload, download and edit your files directly from S3

CloudBerry recently announced comfortable multible files editing and automatic upload of your changes.

EDIT

If you need a web-based editor you might want to have a look at this browser editor. Apparently it is capable to read files from a s3 bucket, but requires to be installed in your own web space.



回答2:

No, there is not currently an AWS-supported method of editing an S3 file within the browser (like you can in, say, cPanel).



回答3:

You can use https://www.s3edit.com

It is using HTTPS so your connection is secure and it works without saving any of your keys (it has an option to save it to your browser localStorage). There is no session that it keeps your keys so it sends your keys with every request for one time use.



回答4:

I would use S3 Sync from the awscli to download the files and edit them locally before syncing them back to their original location and updating the originals.

Documentation on S3 sync here: https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html