I'm attempting to use modules to create resources. When referencing the module, it doesn't seem to be able to check the version option and gives me an error.
This is the error I'm getting.
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider
hashicorp/victorops: provider registry registry.terraform.io does not have a
provider named registry.terraform.io/hashicorp/victorops
Cleaning up file based variables
If I add the terraform and provider info within the module itself, it seems to be able to work just fine.
I've tested.
Removing the version completely, and attempted adding ~> or the specific version etc...
Adding the team directly within the code works fine (just can't do it through a module)
If I add the the terraform section within the module itself and it seems to work just fine. Not sure if this is suppose to be like this, but I feel its kind of weird duplicating the code in both the main.tf file as well as the modules maint.tf.
I'm attempting to use modules to create resources. When referencing the module, it doesn't seem to be able to check the version option and gives me an error.
This is the error I'm getting.
This is the main.tf file
If I add the terraform and provider info within the module itself, it seems to be able to work just fine.
I've tested.
If I add the the terraform section within the module itself and it seems to work just fine. Not sure if this is suppose to be like this, but I feel its kind of weird duplicating the code in both the main.tf file as well as the modules maint.tf.