2 Answers
- Newest
- Most votes
- Most comments
2
If your lambda is VPC enabled, can you create a VPC endpoint for S3 in your VPC - https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html and https://docs.aws.amazon.com/vpc/latest/privatelink/create-interface-endpoint.html
Also check if the IAM role associated with the lambda function has the necessary permissions to access S3 - https://aws.amazon.com/premiumsupport/knowledge-center/lambda-execution-role-s3-bucket/
Also if you are following any particular tutorial from AWS, can you please provide the URL?
0
Root cause: VPC have no internet connection issue, causing Lambda can't access S3.
Solution: Add VPC Gateway Endpoint (Select com.amazonaws.us-west-2.s3) in Lambda associated VPC.
answered 2 years ago
Relevant content
- asked 3 years ago
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
I will try to create your suggestions. thank you so much!!
If your lambda function is failing when trying to execute an Athena query, then this document may also help you set the right permissions - https://docs.aws.amazon.com/athena/latest/ug/hive-metastore-iam-access-lambda.html
If nothing works, please do share some more details on what you are trying to do and where exactly the failure is occuring
I had the same issue. I tried to create an S3 endpoint of the type interface and I couldn't make it work.
Once I created an S3 endpoint of the type gateway it started working.