Dear Team,
In the lab "HTTPS Content-Based Load Balancer with Terraform" at Task 2, when I run the command "terraform apply tfplan", I keep encountering an error, as shown in the screenshot below from the lab. I have attempted the lab a couple of times, and each time I have faced this error, even after double-checking that I have properly followed the lab instructions.
I would appreciate it if someone could address and resolve this issue.
Thank you.
Hi @JRamF1 ,
The error message shows:
Could not find image or family ubuntu-os-cloud/ubuntu-2004-lts.
This likely means the image family ubuntu-2004-lts is not available in the ubuntu-os-cloud project in this lab environment.
To fix this, try replacing it in your Terraform config with:
source_image = "projects/debian-cloud/global/images/family/debian-11"
Or, if the lab requires Ubuntu specifically, try:
source_image = "projects/ubuntu-os-cloud/global/images/family/ubuntu-minimal-2004-lts"