I am trying to use Lambda@Edge functions in the article below on an already existing s3 bucket and its distribution:
I can reach images but whenever I try to resize I get "Access Denied" error.
S3 bucket is publicly readable. In bucket policy I gave put object get object permissions to both public and the IAM role lambda functions are using.
I have attached various lambda policies to IAM role of functions as you can see below:
AWSLambdaFullAccess, CloudFrontFullAccess, AdministratorAccess, AWSLambdaExecute, AWSLambdaBasicExecutionRole, AWSLambdaRole
Distrbutions view protocol policy HTTP and HTTPS so request type shouldn't be a problem Can anyone help? I am going crazy :(