Skip to content

Commit a6858c3

Browse files
committed
Added s3:ListBucket to lambda iam policy
1 parent 9d2d20e commit a6858c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

terraform/data_logger/data.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ data "aws_iam_policy_document" "lambda_s3_policy" {
5050
actions = [
5151
"s3:ListAllMyBuckets", # Allows listing all buckets in the account
5252
"s3:GetObject", # Allows reading objects in buckets
53-
"s3:PutObject" # Allows writing objects to buckets
53+
"s3:PutObject", # Allows writing objects to buckets
54+
"s3:ListBucket"
5455
]
5556

5657
resources = [

0 commit comments

Comments
 (0)