Skip to content

Commit 98f7844

Browse files
authored
Merge pull request #34 from ONS-Innovation/lambda-s3-perms-fix
Bug: Lambda IAM Role missing s3:ListBuckets
2 parents 81e36bc + a6858c3 commit 98f7844

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)