DEV Community

Discussion on: Deploy Web Server on Google Compute Engine (GCE) with Terraform

Collapse
 
simonmuraya profile image
Simon Muraya

Hi Pradeep,

Thanks for the above.
For future readers, as of March 22nd, 2020 there has been some changes to Google Cloud Images documentation and running the above may lead to an error.

The following below needs to be changed from:
This

 
data "google_compute_image" "debian" {
     family  = "ubuntu-1804-lts"
     project = "gce-uefi-images"
} 

To

data "google_compute_image" "debian" {
    family  = "debian-9"
    project = "debian-cloud"
}

Reference
cloud.google.com/compute/docs/images
https://cloud.google.com/compute/docs/images

Collapse
 
pradeepbhadani profile image
Pradeep Bhadani • Edited

Hi Simon,
Thanks for your message.

"ubuntu-1804-lts" family is part of "Images with Shielded VM support".
Please see: cloud.google.com/compute/docs/imag...

Image

Hope this helps.