如何删除带有奇怪名称的AWS S3 Bucket

时间:2022-06-23 01:10:04

I accidentally copied data to a bucket named "s3://my-rd-data/Project-0001" so my bucket path looked like:

我不小心将数据复制到名为“s3:// my-rd-data / Project-0001”的存储桶中,因此我的存储桶路径如下所示:

s3://my-rd-data/s3://my-rd-data/Project-0001

what i really want is

我真正想要的是什么

s3://my-rd-data/Project-0001

Now, i cannot remove the wrong bucket"s3://my-rd-data/s3://":

现在,我无法删除错误的存储桶“s3:// my-rd-data / s3://”:

$ aws s3 rb s3://my-rd-data/s3\:\/\/
Please specify a valid bucket name only. E.g.

$ aws s3 rb s3://my-rd-data/s3://
Please specify a valid bucket name only. E.g.

$ aws s3 rb s3://my-rd-data/s3\://
Please specify a valid bucket name only. E.g.

Can someone let me know how to remove this bucket?

有人能告诉我如何删除这个桶吗?

Thanks a lot,

非常感谢,

Shuoguo

Shuoguo

1 个解决方案

#1


1  

Have you tried removing the bucket from AWS Web Console?

您是否尝试从AWS Web Console中删除存储桶?

Also, you can do aws s3 ls to see the name of the bucket and delete it that way.

此外,您可以执行aws s3 ls来查看存储桶的名称并将其删除。

Per AWS Docs Bucket Restrictions and Limitations:

每个AWS Docs Bucket限制和限制:

Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number.

存储桶名称可以包含小写字母,数字和连字符。每个标签必须以小写字母或数字开头和结尾。

#1


1  

Have you tried removing the bucket from AWS Web Console?

您是否尝试从AWS Web Console中删除存储桶?

Also, you can do aws s3 ls to see the name of the bucket and delete it that way.

此外,您可以执行aws s3 ls来查看存储桶的名称并将其删除。

Per AWS Docs Bucket Restrictions and Limitations:

每个AWS Docs Bucket限制和限制:

Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number.

存储桶名称可以包含小写字母,数字和连字符。每个标签必须以小写字母或数字开头和结尾。