English 中文(简体)
为什么阅读S3bucket 返回机会吗?
原标题:Why does reading S3 bucket return Access Denied, event with root credentials (from CLI)?

版本:

aws-cli/2.7.32 Python/3.9.11 Darwin/22.6.0 exe/x86_64 prompt/off

在<代码>Access Denied上有许多阻滞条款,由于进入S3 Bucket而引发。 在此,我的问题涉及根本获得特权。

就我的情况而言,我提供了根基的CLLI(即,从AWS根基账户产生的接触钥匙/秘密)。 然后,我按惯例界定这些全权证书:

$ cat ~/.aws/credentials
[list-s3-bucket]
output=json
aws_access_key_id=XXX
aws_secret_access_key=YYY

www.un.org/spanish/ga/president

随后,我指挥了这一CLI指挥系统,以进入S3 bucket my-stuff:

$ aws --profile list-s3-bucket s3 ls s3://my-stuff/

An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

错误表示许可问题。

问题:如何根植CLI 查阅证书,看不出桶子(< 条码>-最有条码>?

有许多文章谈到专用许可,将正确政策附在用户手中等等。 但我想到的是,没有任何东西是相关的。 这是一个具有根本特权的CLI指挥部。 为什么能看<条码>-最有条码>?

这个问题的自然后果是:由于根本不能见my-stuff,那么我怎么能看到my-stuff?

一种深思熟虑是my-stuff。 不存在。 因此,我审判了独一无二的手-:

$ aws --profile list-s3-bucket s3 ls s3://my-stuff-does-not-exist/

An error occurred (NoSuchBucket) when calling the ListObjectsV2 operation: The specified bucket does not exist
问题回答

From the documentation on AWS Bucket Naming guidelines:

Buck名必须在所有阿拉伯首脑会议区域的所有账户中独一无二。

换言之,名牌名字属于所有账户共有的全球名称空间。

鉴于AWS和S3的缩略语(例如my-bucketbasic-files,该词的 每一可能已经使用特定桶名称,事实上,你无法与桶连接起来,因此,预计会发生出入错。





相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签