Closed
Description
Hey all. I have only tested this with the google provider
Terraform v0.5.3-dev (0d575b7)
I also tested with 0.5.1 with the same behaviour.
main.tf
module "test" {
source = "./module"
}
./module/main.tf
provider "google" {
alias = "eu"
project = "staging"
account_file = "google.json"
region = "europe-west1"
}
resource "google_compute_address" "new_ip" {
provider = "google.eu"
name = "new_ip"
}
terraform plan produces:
Errors:
* 1 error(s) occurred:
* module.test: provider google.eu couldn't be found
If I include the provider inside the main.tf file I get the same error.
If I include the provider in both main.tf and ./module/main.tf it works.