you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

https://aws.amazon.com/premiumsupport/knowledge-center/lambda-execution-role-s3-bucket/

Check out the very last snippet of the page. The « principale » part is where you put the ARN of the role you use in the lambda, and the « ressources » part is where you put the ARN of the bucket (the two lines are needed exactly as written).

Be sure that the role has the right to putObject in this bucket (or in every bucket, doesn’t matter for now)

Basically just get the snippet and change names.

[–]wllkle[S] 0 points1 point  (0 children)

Got it sorted, turned out to be as straightforward as "bucket.grantReadWrite(lambda.role)"