google-cloud-platform - 从现有模板在 Google Cloud Platform 中创建实例模板
问题描述
我正在尝试从现有模板创建一个新的实例模板,但我总是遇到错误。我运行的命令:
gcloud compute instance-templates create elk-pool-template-us-west1-3 --source-instance elk-pool-template-us-west1-2 --source-instance-zone us-west1-2
我得到的错误:
错误:(gcloud.compute.instance-templates.create)无法识别的参数:
--source-instance elk-pool-template-us-west1-2
--source-instance-zone us-west1-2
解决方案
unrecognized-arguments
错误指出gcloud
无法识别的是and--source-instance
参数--source-instance-zone
,而不是您尝试分配的值。我刚刚尝试了您正在使用的命令,它对我有用,所以我认为您需要更新 Cloud SDK。
运行以下命令以更新所有已安装的组件:
$ gcloud components update
推荐阅读
- c++ - C ++检查国际象棋游戏中是否有玩家在路上
- reactjs - 如何在反应中导航到新页面?
- java - Java:方法 org.postgresql.jdbc4.Jdbc4Connection.isValid(int) 尚未实现
- prolog - 试图在序言中打印出 preOrder Traversal
- html - 显示外部 SVG
- node.js - 如何使基于角色的中间件在nodejs和mongoose中以适当的权限访问api?
- java - 并行垃圾收集器是否在主程序旁边的单独线程上运行
- lua - 丰富的 Lua 智能感知
- r - 如何将 ctree 节点变成向量?
- reactjs - 如何防止 Create React App 强制我安装 TypeScript,因为依赖项中有一个 ts 文件