AWS S3 Allows to create bucket name Caps through AWS CLI

女生的网名这么多〃 提交于 2019-12-12 04:45:24

问题


When you provide S3 bucket name as Capital letters using Console - it throws error (Caps letters not allowed)

However, when you create the bucket in S3 using CLI - it just creates.

I'm I missing any settings? Why is this behavior?


回答1:


If you use the AWS Management Console, bucket names must be DNS-compliant in all Regions.

Rule 2 of DNS compliant name states that:

Bucket names must be a series of one or more labels. Adjacent labels are separated by a single period (.). Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number.

Hence you are NOT able to create bucket starting with CAPITAL LETTERS from console (Infact console doesn't allow you to use CAPITAL LETTERS at all in the bucket-name) but aws_cli allows you to create bucket name starting with caps.

The US East (N. Virginia) currently allows more relaxed standards for bucket naming.

You can check the rules in this section of S3 documentation Rules for Bucket Naming.



来源:https://stackoverflow.com/questions/46938100/aws-s3-allows-to-create-bucket-name-caps-through-aws-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!