fix: add permission to delete objects
This commit is contained in:
parent
86981a13e3
commit
588293b73a
1 changed files with 4 additions and 2 deletions
6
main.tf
6
main.tf
|
|
@ -82,7 +82,8 @@ data "aws_iam_policy_document" "strapi_uploads_local" {
|
|||
"s3:GetObjectAcl",
|
||||
"s3:ListBucketMultipartUploads",
|
||||
"s3:PutObject",
|
||||
"s3:PutObjectAcl"
|
||||
"s3:PutObjectAcl",
|
||||
"s3:DeleteObject",
|
||||
]
|
||||
resources = ["arn:aws:s3:::mareshq-strapi-uploads-local/*"]
|
||||
}
|
||||
|
|
@ -190,7 +191,8 @@ data "aws_iam_policy_document" "strapi_uploads_live" {
|
|||
"s3:GetObjectAcl",
|
||||
"s3:ListBucketMultipartUploads",
|
||||
"s3:PutObject",
|
||||
"s3:PutObjectAcl"
|
||||
"s3:PutObjectAcl",
|
||||
"s3:DeleteObject",
|
||||
]
|
||||
resources = ["arn:aws:s3:::mareshq-strapi-uploads-live/*"]
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue