在AWS Go-SDK中从VPC中的Lambda访问s3 [英] accessing s3 from lambda within VPC in aws-go-sdk

查看:84
本文介绍了在AWS Go-SDK中从VPC中的Lambda访问s3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用aws-sdk-go,请注意s3请求使用的是http/https而不是s3协议.如何使用aws-sdk-go从vpc中的lambda读取s3中的对象?

I'm just started on using aws-sdk-go and notice that the s3 requests are using http/https rather than s3 protocol. How can I read the object in s3 from my lambda within vpc using aws-sdk-go?

我不想使用NAT网关.我可以在NodeJS中执行此操作,但是aws-go-sdk是否可以执行相同的操作?

And I don't want to use NAT Gateway. I can do this in NodeJS but is there any way for aws-go-sdk to do the same?

谢谢!

推荐答案

要在没有Internet网关的情况下在VPC内访问S3,您需要使用

To access S3 within a VPC without an internet gateway you need to use a S3 Endpoint

这篇关于在AWS Go-SDK中从VPC中的Lambda访问s3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆