1 個回答
- 最新
- 最多得票
- 最多評論
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
相關內容
- 已提問 1 年前
- AWS 官方已更新 6 個月前
- AWS 官方已更新 10 個月前
Many thanks! It is solved!