Terraforn GCP google_compute_instance创建...失败

时间:2020-10-04 18:23:21

标签: google-cloud-platform terraform terraform-provider-gcp

使用

错误::解析映像名称'powerprotect-dd-virtual-edition / dellemc-ddve-p时出错 ublic':找不到图片或家庭powerprotect-dd-virtual-edition / dellemc-dd 大众

但是,当我在GCP Marketplace上搜索“ PowerProtect DD虚拟版”时,却得到了如下网址: https://console.cloud.google.com/marketplace/details/dellemc-ddve-public/powerprotect-dd-virtual-edition?authuser=andso上。

提取dellemc-ddve-public / powerprotect-dd-virtual-edition并将其放入terraform google_compute_instance中,例如:

provider "google" {
  credentials = file("../project-XXX19fc34.json")
  project     = XXX_project
  region      = var.gcp_region
  zone        = var.gcp_zone
}
resource "google_compute_instance" "vm-instance" {
  name         = "ddve-XXXX-20-65"
  machine_type = "f1-micro"
  tags         = ["creator", "XXX"]

  boot_disk {
    initialize_params {
      #          image = "debian-cloud/debian-9"
      #          image = "family name: powerprotect-dd-virtual-edition/ProjectID:dellemcXXXXXc"
      image = "powerprotect-dd-virtual-edition/dellemc-ddve-public"

    }
  }

地形应用收益: google_compute_instance.vm-instance:正在创建...

错误:解析映像名称'powerprotect-dd-virtual-edition / dellemc-ddve-p时出错 ublic':找不到图片或家庭powerprotect-dd-virtual-edition / dellemc-dd 大众

我如何找出可以使用的姓氏和ProjectId?

0 个答案:

没有答案