Skip to content

Commit 8f103e9

Browse files
committed
and add the bucket permissions to the exec policy
1 parent 5ca7d1a commit 8f103e9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

infrastructure/instance/file_name_processor.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,20 @@ resource "aws_iam_policy" "filenameprocessor_lambda_exec_policy" {
134134
"${aws_s3_bucket.batch_data_destination_bucket.arn}/*"
135135
]
136136
},
137+
{
138+
Effect = "Allow"
139+
Action = [
140+
"s3:GetObject",
141+
"s3:ListBucket",
142+
"s3:PutObject",
143+
"s3:CopyObject",
144+
"s3:DeleteObject"
145+
]
146+
Resource = [
147+
aws_s3_bucket.batch_data_ea_bucket.arn,
148+
"${aws_s3_bucket.batch_data_ea_bucket.arn}/*"
149+
]
150+
},
137151
{
138152
Effect = "Allow",
139153
Action = [

0 commit comments

Comments
 (0)