gpt4 book ai didi

amazon-web-services - 调用 DeleteBucket 操作时发生错误 (AccessDenied) : Access Denied

转载 作者:行者123 更新时间:2023-12-04 08:09:41 24 4
gpt4 key购买 nike

调用 DeleteBucket 操作时发生错误 (AccessDenied):拒绝访问

[ec2-user@ip-172-31-31-84 temp]$ aws s3 rb --force s3://elasticbeanstalk-us-east-2-719330736384/

remove_bucket failed: s3://elasticbeanstalk-us-east-2-719330736384/ An error occurred (AccessDenied) when calling the DeleteBucket operation: Access Denied

最佳答案

默认情况下,Elastic Beanstalk 存储桶策略拒绝删除。

转到存储桶的策略(存储桶 --> 属性 --> 权限 --> 编辑存储桶策略)

然后找到这个语句

{
"Sid": xxxxxxxxx,
"Effect": "Deny",
"Principal": {
"AWS": "*"
},
"Action": "s3:DeleteBucket",
"Resource": xxxxxxxxxx
}

将效果从拒绝更改为允许。

保存对存储桶策略的更改。

再次尝试删除。

关于amazon-web-services - 调用 DeleteBucket 操作时发生错误 (AccessDenied) : Access Denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48624576/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com