1 Answer
- Newest
- Most votes
- Most comments
0
Is your lambda function VPC enabled? If not, you should not have any issues connecting to S3 from your lambda function, unless there are bucket policies preventing access.
If your lambda function is VPC enabled, you can create a NAT Gateway in your VPC as mentioned here - https://aws.amazon.com/premiumsupport/knowledge-center/internet-access-lambda-function/
Another better option is to create an interface VPC endpoint for S3 in your VPC. That way the lambda function will be able to connect to the S3 endpoint over the Amazon network without needing to go over the internet - https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html
Relevant content
- Accepted Answerasked 2 months ago
- Accepted Answerasked 2 months ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 months ago
Many thanks! It is solved!