mirror of
https://codeberg.org/angestoepselt/service-stack.git
synced 2025-05-24 14:46:17 +00:00
Add restic S3 Policy
This commit is contained in:
parent
945b4c13e7
commit
72b4c308b4
1 changed files with 29 additions and 0 deletions
29
restic-s3.policy
Normal file
29
restic-s3.policy
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
"Version": "2012-10-17",
|
||||||
|
"Statement": [
|
||||||
|
{
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Action": [
|
||||||
|
"s3:PutObject",
|
||||||
|
"s3:GetObject"
|
||||||
|
],
|
||||||
|
"Resource": [
|
||||||
|
"arn:aws:s3:::<BUCKET>",
|
||||||
|
"arn:aws:s3:::<BUCKET>/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Action": "s3:DeleteObject",
|
||||||
|
"Resource": "arn:aws:s3:::<BUCKET>/locks/*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Action": [
|
||||||
|
"s3:ListBucket",
|
||||||
|
"s3:GetBucketLocation"
|
||||||
|
],
|
||||||
|
"Resource": "arn:aws:s3:::<BUCKET>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue