Cost difference between downloading S3 files into Lambda function via HTTPS VS SDK?

0

In the documentation, it states that downloading files from S3 is free from the same region. Question: does the download need to happen via s3.getObject({Key}) or can also happen via https.get('https://s3-...')? Speed seems the same. Thanks!

질문됨 2년 전536회 조회
1개 답변
0

if you access via https://s3- you need to attach a signature to download the object or having the object public. In the case of s3.getObject the user/role that is downloading the object just needs the permission s3:getObject of the object you are downloading.

s3.getObject of the sdk is a wrapper of the REST Api call for S3, so overall they are both making an https request, but all depends from your case.

If the object is public and you don't want to use the sdk, then go with https://s3- but if your object is not public I would suggest to use the sdk as it makes easier and cleaner (from code point of you) to download the file.

Miki
답변함 2년 전
  • Thanks Miki, my question was only about billing. Let me rephrase the title.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠