50

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.)?

Jörg Rech
  • 1,339
  • 2
  • 13
  • 25

4 Answers4

33

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

EDIT: Example:

  1. aws s3 sync s3://mybucket .
  2. edit your files locally
  3. aws s3 sync . s3://mybucket
kkurian
  • 3,844
  • 3
  • 30
  • 49
fIwJlxSzApHEZIl
  • 11,861
  • 6
  • 62
  • 71
17

If you use VSCode and install the AWS extension, you can:

  1. Open the desired bucket in S3 in the AWS Explorer that you get in your VSCode window
  2. Right-click the desired file in the AWS Explorer, and select "Download As...", select the location, and press "Download"
  3. Edit your file locally
  4. Right-click again the file in the AWS Explorer and select "Upload to Parent...", select the file, and press "Upload"
Guillermo Ampie
  • 173
  • 1
  • 7
6

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

L0j1k
  • 12,255
  • 7
  • 53
  • 65
5

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 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.

Alan W. Smith
  • 24,647
  • 4
  • 70
  • 96
Michel Feldheim
  • 17,625
  • 5
  • 60
  • 77
  • 1
    Thanks, but this is not a Cloud-based editor. You have to download and install it - and it's not available for Macs. It's not better than a text editor where I upload the changed files via the web interface of S3. – Jörg Rech Dec 30 '12 at 10:33
  • If a solution installed on your own web space would help you can try [this editor](http://www.karamasoft.com/ultimateeditor/samples/contenthandling/editorcontentamazons3/editorcontentamazons3.aspx) – Michel Feldheim Dec 30 '12 at 10:46
  • thats so annoying there should have been some way to edit – Prasanjit Dey Nov 11 '15 at 13:23
  • s3 doesn't support editing files... it stores objects that must be rewritten any time you want to update them. Look into file gate if you want something close. – dillon.harless Apr 11 '19 at 15:53