AWS SAM CLI:sam 部署 python3.8 图像失败

AWS SAM CLI: sam deploy with python3.8 Image failing

我正在尝试使用 sam deploy -gthis article 之后部署示例应用程序。

sam local invoke "HelloWorldFunction" -e events/event.jsonsam local start-api)

一切正常 另一方面,

sam deploy --guided 失败了:

Unable to determine service/operation name to be authorized (Service: AWSLambdaInternal; Status Code: 403; Error Code: AccessDeniedException; Request ID: xxxx-xxxx-xxxx-xxxx-xxxx; Proxy: null)

之后,将 get 方法更改为 post 也没有帮助。 下面附上命令输出的截图

非常感谢任何帮助!

我的本地机器信息:

OS: macOS BigSur version 11.1
Docker version 20.10.0, build 7287ab3
SAM CLI, version 1.15.0
aws-cli/2.1.15 Python/3.7.4 Darwin/20.2.0 exe/x86_64

我有同样的问题,但我想我已经找到问题的根源了。这是 AWS 区域的问题。我的部署不适用于 eu-west-3(巴黎)区域,但适用于 eu-west-1(爱尔兰)区域。希望 AWS 能尽快解决这个问题,有一个不起作用的入门看起来有点业余:(

来自 blog post 尚未在全球范围内提供。

You can use container images to deploy your Lambda functions today in US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Tokyo), Asia Pacific (Singapore), Europe (Ireland), Europe (Frankfurt), South America (São Paulo). We are working to add support in more Regions soon