New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 bucket: Access denied #5288
Comments
Hi, |
Hi @Kristiyandz Thanks for the reply. The function is too complex to share, it's an adapter between two Enterprise systems. What do you mean with "path"? I used the ARN of the bucket, as reported by AWS. |
BTW: I now called the lambda func via "invoke local", and it worked fine - the file has been stored in the bucket. However, if fails if the func is invoked from within the AWS environment. |
I've checked the permissions of the role set in IAM now. There is no permission for any S3 buckets, only for the cloudwatch logs. Funny enough, the func runs fine with |
OK. It was my fault. The |
Just for reference to anyone running into this issue:
|
Hi all. I still have same issue..
The handler.js is as is
When I run
My IAM role have "AdministratorAccess". I could create s3 bucket via awscli so I believe I have right access. |
I am trying to save some data in an S3 bucket from an AWS Lambda function.
I've set up my
serverless.yaml
as described in the sample code, which means:iamRoleStatements
section as isresources
section and inserted my bucket name thereI can see that the bucket has been created in S3. But when I try to store a file to it, I'm getting an
Access Denied
error.I assumed that the sample
iamRoleStatements
section would be enough to set-up the required rights for putting files into the bucket. Is there anything else that you have to do?I also tried the configuration from this sample:
https://github.com/serverless/examples/blob/master/aws-node-fetch-file-and-store-in-s3/serverless.yml
But it also failed.
The text was updated successfully, but these errors were encountered: