三个示例
在“供应Kubernetes引擎集群”一节中,运行以下命令
make create我犯了个错误:
enter code here
│ Error: Error resolving image name 'debian-cloud/debian-9': Could not find image or family debian-cloud/debian-9
│
│ with module.bastion.google_compute_instance.instance,
│ on modules/instance/main.tf line 54, in resource "google_compute_instance" "instance":
│ 54: resource "google_compute_instance" "instance" {发布于 2022-09-21 03:11:17
步骤1:运行命令查看可用的图像
gcloud compute images list | grep debian步骤2:在项目根目录下运行以下命令
vi ./terraform/modules/instance/main.tf步骤3:在VIM正常模式下,按/debian-9类型搜索debian-9,按enter键。
// Specify the Operating System Family and version.
boot_disk {
initialize_params {
image = "debian-cloud/debian-9"
}
}第四步:作为我的案例,debian-10是可用的。因此,我将上面的块代码更改为
// Specify the Operating System Family and version.
boot_disk {
initialize_params {
image = "debian-cloud/debian-10"
}
}步骤5:将目录更改为项目根目录,然后重新运行命令make create。
https://stackoverflow.com/questions/73794948
复制相似问题