无法从AWS控制台修改S3存储桶上的任何设置

时间:2018-12-05 07:48:58

标签: amazon-web-services amazon-s3

我是AWS的新手。 当我在链接中添加存储桶策略时。我从AWS控制台失去了所有控制权。我该如何再次从控制台更改策略。

Restricting Access to a Specific VPC

{
   "Version": "2012-10-17",
   "Id": "Policy1415115909153",
   "Statement": [
     {
       "Sid": "Access-to-specific-VPC-only",
       "Principal": "*",
       "Action": "s3:*",
       "Effect": "Deny",
       "Resource": ["arn:aws:s3:::examplebucket",
                    "arn:aws:s3:::examplebucket/*"],
       "Condition": {
         "StringNotEquals": {
           "aws:sourceVpc": "vpc-111bbb22"
         }
       }
     }
   ]
}

0 个答案:

没有答案