简体   繁体   English

更新S3存储桶文件的ID3标签

[英]Update the ID3 tags of S3 bucket files

In my AWS s3 bucket I have thousand of mp3 files and I want to modify the ID3 tags for those files. 在我的AWS s3存储桶中,我有成千上万个mp3文件,并且我想修改这些文件的ID3标签。 please suggest the best way. 请提出最佳方法。

Sorry to give you the bad news, but only way to do is downloading files one by one update id3 tags and upload them back to s3 bucket. 很抱歉给您带来坏消息,但是唯一的方法是一步一步地下载文件更新id3标签并将它们上传回s3存储桶。 You cannot edit files in place, because AWS S3 is object storage, meaning it keeps data in key: value pairs, key is the folder/filename, value is the file content. 您无法就地编辑文件,因为AWS S3是对象存储,这意味着它将数据保存在键中:值对,键是文件夹/文件名,值是文件内容。 It's not suitable for file system, databases, etc. 它不适用于文件系统,数据库等。

If you do it this way, one warning, check if you have versioning is on or off for your bucket. 如果您这样做,这是一个警告,请检查您的存储桶是否已启用版本控制。 Sometimes it's nice to have versioning handled automatically by S3 but, you should remember that each version adds to the storage space that you're paying for. 有时候由S3自动处理版本控制会很好,但是,您应该记住,每个版本都会增加您要付费的存储空间。

If you want to edit/modify your files every now and then, you can use AWS EBS or EFS. 如果您想不时地编辑/修改文件,则可以使用AWS EBS或EFS。 Both EBS and EFS are block storages, and you can attach them to any EC2 instance, then you can edit/modify your files. EBS和EFS都是块存储,您可以将它们附加到任何EC2实例,然后可以编辑/修改文件。 The difference between EBS and EFS mainly is, EFS can be attached to multiple EC2 instances at the same time, and share the files in between them. EBS和EFS之间的主要区别在于,EFS可以同时附加到多个EC2实例,并在它们之间共享文件。

One more thing about EBS and EFS though, to reach your files, you need to attach it to an EC2 instance. 但是,关于EBS和EFS的另一件事是,要访问文件,您需要将其附加到EC2实例。 There is no other way to reach your files as easily as in S3. 没有其他方法可以像在S3中那样轻松地访问文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM