{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bn/*"
}
]
}
cors:
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [
"ETag"
]
}
]
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bn/*",
"Condition": {
"StringLike": {
"aws:Referer": "https://*.x.com/*"
}
}
},
{
"Sid": "PublicReadGetObject2",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::7788:user/suser"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bn/*",
"Condition": {}
}
]
}
No comments:
Post a Comment