This commit is contained in:
2026-11-19 19:45:26 +03:00
parent 276dbdad8a
commit ffa3d99557
34 changed files with 3277 additions and 41 deletions
+28
View File
@@ -0,0 +1,28 @@
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:GetBucketLocation"],
"Resource": ["arn:aws:s3:::messenger-attachments"]
},
{
"Effect": "Allow",
"Action": ["s3:ListBucket"],
"Resource": ["arn:aws:s3:::messenger-attachments"],
"Condition": {
"StringLike": {
"s3:prefix": ["objects/", "objects/*", "staging/", "staging/*"]
}
}
},
{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:PutObject", "s3:DeleteObject"],
"Resource": [
"arn:aws:s3:::messenger-attachments/objects/*",
"arn:aws:s3:::messenger-attachments/staging/*"
]
}
]
}