使用来自 GCP 市场的 terrafrom 创建实例 [英] Create instance using terrafrom from GCP marketplace

查看:12
本文介绍了使用来自 GCP 市场的 terrafrom 创建实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建 terraform 脚本 以启动来自市场的 fastai 实例.

I m trying to create terraform script to launch the fastai instance from the marketplace.

我正在添加图像名称,

boot_disk {
    initialize_params {
      image = "<image name>"
    }
  }

当我添加

click-to-deploy-images/deeplearning

来自网址

https://console.cloud.google.com/marketplace/details/click-to-deploy-images/deeplearning

出现错误,


Error: Error resolving image name 'click-to-deploy-images/deeplearning': Could not find image or family click-to-deploy-images/deeplearning

  on fastai.tf line 13, in resource "google_compute_instance" "default":
  13: resource "google_compute_instance" "default" {

如果我使用

debian-cloud/debian-9

来自网址

https://console.cloud.google.com/marketplace/details/debian-cloud/debian-stretch?project=<>

正在工作.

我们可以通过 terraform 部署 fastai 镜像吗?

Can we deploy fastai image through terraform?

推荐答案

在这种特殊情况下,名称是deeplearning-platform-release/pytorch-latest-gpu",

In this particular case, the name was "deeplearning-platform-release/pytorch-latest-gpu",

boot_disk {
    initialize_params {
      image = "deeplearning-platform-release/pytorch-latest-gpu"
      ...
    }
  }

现在我可以创建实例了.

Now I m able to create the instance.

这篇关于使用来自 GCP 市场的 terrafrom 创建实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆