Hi Folks! I feel like this is a really basic question, but I’m not seeing a clear answer for it.
I’m trying to use Terraform Registry and it shows a very simple set of instructions, but I can’t get it to work. I have:
terraform {
required_providers {
google = {
source = "hashicorp/google"
}
}
}
provider "google" {
}
module "mig" {
source = "terraform-google-modules/vm/google/modules/mig"
version = "7.7.0"
project_id = "test-project-123"
region = "us-central1-a"
target_size = 1
hostname = "testmig"
}
But I keep getting this error Terraform cannot detect a supported external module source type
$ terraform version
Terraform v1.1.9
on darwin_arm64
$ terraform init
Initializing modules...
│ Error: Invalid module source address
│
│ Module "mig" (declared at main.tf line 12) has invalid source address
│ "terraform-google-modules/vm/google/modules/mig": Terraform cannot detect a supported external module
│ source type for terraform-google-modules/vm/google/modules/mig.