-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a provider produces a warning, possibly due to missing source
#31
Comments
Agreed, the error message is a bit confusing, but I think this comes down to the legacy terraform-aws-collection/versions.tf Line 5 in 78a6420
In a literal sense there is a declaration for an
terraform {
required_providers {
null = {
source = "hashicorp/null"
}
}
}
provider "null" {}
module "m" {
source = "./module"
providers = {
null = null
}
}
terraform {
required_providers {
null = {
# a random fork
source = "hc-doc-sparkle/null"
}
}
}
resource "null_resouce" "this" {} This configuration produces an error on
Terraform refuses to pass a provider instance for a requirement with a different If a child module doesn't specify |
And on a related note, this is something we'll be enforcing across all our modules soon! |
Thanks for reporting this @jkinkead! Please try |
When submitting a provider to this module, terraform produces a warning about undefined providers.
For example, terraform like:
Will produce a warning like:
I think the suggested remediation (add a "source") should solve this (docs).
The text was updated successfully, but these errors were encountered: