gpt4 book ai didi

amazon-web-services - 如何在无服务器中获取aws lambda arn?

转载 作者:行者123 更新时间:2023-12-03 07:42:36 29 4
gpt4 key购买 nike

我正在尝试获取 lambda arn

provider:

...
...
...

parameters:
register_and_annotate_arn: !GetAtt [RegisterAndAnnotateLambda, Arn]

functions:
RegisterAndAnnotateLambda:
name: "lambdaName"
handler: "handler"
timeout: 300

这是部署无服务器时的错误

错误:CloudFormation 模板无效:模板格式错误:模板的资源 block 中未解析的资源依赖项 [RegisterAndAnnotateLambda]

最佳答案

provider:

...
...
...

parameters:
register_and_annotate_arn: !GetAtt RegisterAndAnnotateLambdaLambdaFunction.Arn

functions:
RegisterAndAnnotateLambda:
name: "lambdaName"
handler: "handler"
timeout: 300

关于amazon-web-services - 如何在无服务器中获取aws lambda arn?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62802676/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com