如何重命名AWS S3存储桶名称 [英] How to rename AWS S3 Bucket name

查看:245
本文介绍了如何重命名AWS S3存储桶名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在进行了许多艰苦的迁移工作之后.只要意识到如果需要使用CNAME来提供内容(例如media.abc.com).存储桶名称需要以media.abc.com/S3/amazon.com开头,以确保其正常运行.

After all the tough works of migration etc. Just realise that If need to serve the content using CNAME (e.g media.abc.com). The bucket name need to start with media.abc.com/S3/amazon.com to ensure it work perfectly.

只需意识到S3不允许从控制台直接重命名.

Just realise that S3 don't allow direct rename from the console.

有什么办法可以解决此问题?

Is there any ways to work around for this?

推荐答案

我认为唯一的方法是使用正确的名称创建一个新存储桶,然后将所有对象从旧存储桶复制到新存储桶.您可以使用Aws CLI来做到这一点.

I think only way is to create a new bucket with correct name and then copy all your objects from old bucket to new bucket. You can do it using Aws CLI.

这篇关于如何重命名AWS S3存储桶名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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