An S3 bucket event cannot invoke a redaction Lambda because the function's resource-based policy does not allow the bucket's principal. What should the developer fix?
Select an answer to reveal the explanation.
Short Explanation
S3 is buzzing the doorbell, but Lambda’s resource policy never listed the bucket as a guest. Add the invoke permission for the S3 principal—don’t rip out IAM or hope weekly email is a trigger.
Full Explanation
Event sources such as Amazon S3 require permission to invoke the target Lambda function, typically via a resource-based policy statement allowing the service principal for that bucket. Without it, notifications fail even if the execution role is correct. Removing account roles, misusing environment variables, or manual email workflows do not grant invoke rights.