Skip to content

Commit

Permalink
Allow read/write access to versioned objects in s3 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
UmarTayyab authored Nov 13, 2021
1 parent 4c2b600 commit f546a93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ecs/execution-role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ locals {
"Effect" : "Allow",
"Action" : [
"s3:ListBucket",
"s3:GetObject"
"s3:GetObject",
"s3:GetObjectVersion"
],
"Resource" : var.grant_read_access_to_s3_arns
}] : []
Expand All @@ -70,8 +71,10 @@ locals {
"Action" : [
"s3:ListBucket",
"s3:GetObject",
"s3:GetObjectVersion",
"s3:PutObject",
"s3:DeleteObject"
"s3:DeleteObject",
"s3:DeleteObjectVersion"
],
"Resource" : var.grant_write_access_to_s3_arns
}] : []
Expand Down

0 comments on commit f546a93

Please sign in to comment.