Skip to content

Commit

Permalink
Add object tagging permissions (#555)
Browse files Browse the repository at this point in the history
The ecs task could put files to S3 but couldn't add tags to those files.
This change adds the permissions to add tags. This was discovered while
working on another project.
  • Loading branch information
lorenyu authored Feb 20, 2024
1 parent caca514 commit 724206d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/modules/storage/access-control.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ data "aws_iam_policy_document" "storage_access" {
statement {
actions = [
"s3:DeleteObject",
"s3:DeleteObjectTagging",
"s3:GetObject",
"s3:GetObjectAttributes",
"s3:GetObjectTagging",
"s3:PutObject",
"s3:PutObjectTagging",
]
effect = "Allow"
resources = ["arn:aws:s3:::${var.name}/*"]
Expand Down

0 comments on commit 724206d

Please sign in to comment.