Comments (5)
我是初学者,想用 s 体验 jmstack。按照提示使用 s 初始化 DK HTTP API 模板。然后执行 s deploy 时遇到如下问题:
然后走不下去了。我期望模板有对应的文档能告知正确的配置,典型错误处理。让初学者也能顺利的玩起来。
from serverless-devs.
我是初学者,想用 s 体验 jmstack。按照提示使用 s 初始化 DK HTTP API 模板。然后执行 s deploy 时遇到如下问题:
然后走不下去了。我期望模板有对应的文档能告知正确的配置,典型错误处理。让初学者也能顺利的玩起来。
可以先检查下是否正确配置了密钥
- 获取密钥信息 s config get -l
- 设置密钥信息 s config add
- 选择 Alibaba Cloud (alibaba)
- AccountID:https://account.console.aliyun.com/v2/#/basic-info/index 可查看账号Id
- AccessKeyID和AccessKeySecret:https://ram.console.aliyun.com/manage/ak 点击 查看 Secret 可看到相关信息
- 最后输入alias, 在s.yml文件更改access为刚输入的alias
- 重新执行 s deploy
部署成功后,可以去fc控制台 https://fc.console.aliyun.com/ 查看自己部署的函数
from serverless-devs.
弄明白了。这个问题是这样的:我配置了密钥,按照默认一路点回车,最后配置的账户信息是在 default 这个 alias 中。但是 s init 这个模板,s.yml 默认的alias是 alibaba.default ,所以我还是会遇到错误。建议做两个改进:
- 可以提醒用户工具配置了哪些 alias,模版要求的账户 alias 是什么,有没有配置好。
- 把 s config 设置的默认 alias 和模板 s.yml 中的默认 alias 统一起来。
from serverless-devs.
在这个示例中s.yml没有默认的alias哈,需要去选择alias, 这里的alias其实来自于 s config中的设置的。
from serverless-devs.
这个问题的解决方案:在初始化项目的时候要求用户选择密钥信息。
from serverless-devs.
Related Issues (20)
- 不同云厂商帮助渠道 / 需要帮助的小伙伴点击了解详情 HOT 1
- Mac & Windows 用户安装常见问题汇总
- yaml schema 不支持自定义变量 HOT 1
- 发布自定义容器时,docker login --password-stdin 疑似在 windows command propmt 中失效 HOT 6
- A potential risk in the start-word2pdf can be used to attack the OSS bucktes. HOT 2
- A potential risk in the fc-llm-api can be used to escalate permission. HOT 2
- A potential risk in the fc-stable-diffuson can be used to escalate permission. HOT 5
- SyntaxError: missing ) after argument list HOT 1
- Support random string generation during template initialization HOT 1
- s init 阶段,在模板中的变量多处依赖 ${default-suffix},但是生成后每个 default-suffix 的值都不同 HOT 4
- 组件开发,执行npm run pub报“Error Message: 权限异常” HOT 4
- s xx --help提供的文档网站域名已过期 HOT 2
- Not found access: undefined
- s init failed with message: Request failed with status code 400 HOT 1
- 阿里云函数 Node.js内置模块未找到 Cannot find module 'raw-body' HOT 4
- fail to create vpc binding without any warning HOT 1
- 是否可在 CI/CD 流程中接入 s registry publish 发布 HOT 1
- MacOS 运行s如果不用sudo则一直卡着,没输出 HOT 2
- 'export' is not recognized as an internal or external command, operable program or batch file. HOT 1
- 建议为s local start 增加透传给docker的启动参数. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-devs.