首页 > 解决方案 > 使用自定义脚本自定义实例的 Google Cloud 自定义 VM 实例

问题描述

我正在寻找有关如何自定义 Google Cloud VM 实例的想法。

我的一个非常简单的需求是在启动后不久执行一个脚本。

怎么走?

谢谢

纳迦维杰亚普拉姆

标签: google-cloud-platform

解决方案


想好了怎么做...

gcloud compute instances create example-instance \
  --metadata-from-file startup-script=scripts/abc.sh \
  --subnet=default \
  --zone=us-central1-b

推荐阅读