Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
fix: use resource for s3 list bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
v-stickykeys committed May 20, 2021
1 parent 56d6151 commit 569b8ad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion modules/ecs/ceramic/templates/state_store_s3_policy.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"Version": "2012-10-17",
"Statement": [
{
"Sid": "readwrite",
"Action": [
"s3:ListBucket",
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
Expand All @@ -13,6 +13,16 @@
"${resource}/${directory}",
"${resource}/${directory}/*"
]
},
{
"Sid": "readonly",
"Action": [
"s3:ListBucket"
],
"Effect": "Allow",
"Resource": [
"${resource}"
]
}
]
}
12 changes: 11 additions & 1 deletion modules/ecs/ipfs/templates/s3_policy.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"Version": "2012-10-17",
"Statement": [
{
"Sid": "readwrite",
"Action": [
"s3:GetObject",
"s3:ListBucket",
"s3:PutObject",
"s3:DeleteObject"
],
Expand All @@ -13,6 +13,16 @@
"${resource}/${directory}",
"${resource}/${directory}/*"
]
},
{
"Sid": "readonly",
"Action": [
"s3:ListBucket"
],
"Effect": "Allow",
"Resource": [
"${resource}"
]
}
]
}

0 comments on commit 569b8ad

Please sign in to comment.