英文:
Bad policy on my bucket in S3 and now I don't have any access
问题
I have applied a bad policy in my bucket and now I can't access to any configuration.
This is the policy:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Deny",
            "Principal": "*",
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::my-bucket",
                "arn:aws:s3:::my-bucket/*"
            ],
            "Condition": {
                "NotIpAddress": {
                    "aws:SourceIp": "instance-ip"
                }
            }
        }
    ]
}
And this is the result:
Any solution? Please ![]()
英文:
I have applied a bad policy in my bucket and now I can't access to any configuration.
This is the policy:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Deny",
            "Principal": "*",
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::my-bucket",
                "arn:aws:s3:::my-bucket/*"
            ],
            "Condition": {
                "NotIpAddress": {
                    "aws:SourceIp": "instance-ip"
                }
            }
        }
    ]
}
And this is the result:
Any solution? Please ![]()
答案1
得分: 2
需要登录为根账户,然后删除该策略。
链接:https://repost.aws/knowledge-center/s3-accidentally-denied-access
英文:
You need to login as root account and then delete the policy.
https://repost.aws/knowledge-center/s3-accidentally-denied-access
答案2
得分: 0
登录您的根帐户(而不是IAM帐户),然后您将能够移除该策略。链接:https://repost.aws/knowledge-center/s3-accidentally-denied-access
英文:
Login as your root account (not IAM) and you will be able to remove the policy. https://repost.aws/knowledge-center/s3-accidentally-denied-access
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。



评论