在AWS S3和IAM文件夹策略中使用Duplicity
我试图从多个主机设置备份到一个桶。 每台主机都有自己的AWSlogin和凭证。 最上面的文件夹(前缀)映射到AWS用户ID,我试图限制只能访问该文件夹。 在备份期间,我得到“S3ResponseError:403 Forbidden”。 我正在使用以下政策: { "Version": "2012-10-17", "Statement": [ { "Sid": "AllowGroupToSeeBucketListInTheConsole", "Action": [ "s3:ListAllMyBuckets", "s3:GetBucketLocation" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::*" ] }, { "Sid": "AllowRootAndHomeListingOfCompanyBucket", "Action": [ "s3:ListBucket" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::mybucketexample" ], "Condition": { "StringEquals": { "s3:prefix": [ "" ], "s3:delimiter": [ "/" ] } } }, { […]