AWS Lambda 可以访问其他区域的 S3 存储桶吗?

编程入门 行业动态 更新时间:2024-10-25 18:32:26
本文介绍了AWS Lambda 可以访问其他区域的 S3 存储桶吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我目前尝试使用 AWS Lambda.lambda 函数应从 S3 存储桶加载 zip 文件(> 10 MB).S3 存储桶位于 eu-central-1,而 lambda 函数位于 lambda:us-east-1.

I currently try to use AWS Lambda. The lambda function should load the zip file (> 10 MB) from an S3 Bucket. The S3 bucket is located in eu-central-1 while the lambda function is in lambda:us-east-1.

当我尝试保存 lambda 函数时,我得到:

When I try to save the lambda function, I get:

GetObject 时发生错误.S3 错误代码:AuthorizationHeaderMalformed.S3 错误消息:授权头格式错误;'us-east-1' 区域是错误的;期待'eu-central-1'

Error occurred while GetObject. S3 Error Code: AuthorizationHeaderMalformed. S3 Error Message: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-central-1'

这真的是问题吗?是否可以移动 lambda 函数?

Is that really the problem? Is it possible to move the lambda function?

执行 Lambda 函数的 IAM 角色具有 AmazonS3FullAccess 策略.

The IAM role which executes the Lambda function has the AmazonS3FullAccess policy.

推荐答案

lambda 函数必须与您在S3 链接 URL*"中指定的 S3 存储桶位于同一区域:

The lambda function has to be in the same region as the S3 bucket you specify at "S3 link URL*":

这篇关于AWS Lambda 可以访问其他区域的 S3 存储桶吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-23 04:43:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1034883.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区域   AWS   Lambda

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!