为什么我的项目每次执行都需要选择密钥信息? #149
anycodes
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在我们完成Serverless devs项目编写之后,执行指令的时候,它会让我们选择密钥信息:
这个流程确实很让人头疼,那么,有什么方法可以不用每次输入密钥呢?
其实,Serverless Devs是一个可以管理多对密钥的工具,所以在进行s.yaml配置的时候,可以考虑添加对应的字段:
如图所示,当我们在最外围加上
access之后,我们就可以默认该项目全局使用这个密钥信息;如果我们写在每个模块下,则会认为只有当前的模块使用该密钥。如果您只需要一个密钥,推荐您将其别名命名为default,这样系统会默认使用default密钥。
Beta Was this translation helpful? Give feedback.
All reactions