如何在浏览器中编辑 AWS S3 中的文件? [英] How to edit files in AWS S3 in the browser?

查看:25
本文介绍了如何在浏览器中编辑 AWS S3 中的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在亚马逊的 S3 系统上托管了我的主页.为了更改页面上的信息,目前我必须更改计算机上的文件并上传新版本.但是,我想直接在浏览器中更改 S3 存储桶中的文件(在任何地方更改).

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

是否有基于云的文本编辑器可以将 S3 用作文件系统"并允许我更改文本文件(例如 html、css、js 等)?

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

推荐答案

我会使用 awscli 中的 S3 Sync 下载文件并在同步之前在本地编辑它们回到原来的位置并更新原件.

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.

此处提供有关 S3 同步的文档:https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html

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

示例:

  1. aws s3 同步 s3://mybucket .
  2. 在本地编辑您的文件
  3. aws s3 同步.s3://mybucket

这篇关于如何在浏览器中编辑 AWS S3 中的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆