You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a new module in development. Just showing some of the resources for context, but most important would be the root terraform block, required_providers and resource google_cloud_identity_group using the aliased provider.
Expecting to be able to run terraform validate without explicit provider block defined for the alias. And even if I need that workaround not receiving warnings about a bare provider block defined when using the module.
Actual Behavior
Full terraform validate output available via the gist. Seems as though validate is getting confused about state management or something for these aliased provider resources in the module.
If I provide an explicit, bare provider block (commented out in config shared) for the alias in the module itself, validate succeeds . When I uncomment that provider block so it prevents the validate error, using the module elsewhere gives this:
│ Warning: Empty provider configuration blocks are not required
│
│ on .terraform/modules/delivery/google/paas-zone/versions.tf line 19:
│ 19: provider "google" {
│
│ Remove the google.group_management provider block from module.delivery.
│
│ (and 2 more similar warnings elsewhere)
Steps to Reproduce
I think building a simple module like below using the same pattern with aliasing and using the expected aliased provider in at least one resource should produce, e.g.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
This is a new module in development. Just showing some of the resources for context, but most important would be the root
terraform
block,required_providers
and resourcegoogle_cloud_identity_group
using the aliased provider.Debug Output
https://gist.github.com/rockholla/c45b4eceebe894f91b66f34f6b30b2b1
Crash Output
N/A
Expected Behavior
Expecting to be able to run
terraform validate
without explicitprovider
block defined for the alias. And even if I need that workaround not receiving warnings about a bare provider block defined when using the module.Actual Behavior
Full
terraform validate
output available via the gist. Seems as though validate is getting confused about state management or something for these aliased provider resources in the module.If I provide an explicit, bare
provider
block (commented out in config shared) for the alias in the module itself, validate succeeds . When I uncomment that provider block so it prevents thevalidate
error, using the module elsewhere gives this:Steps to Reproduce
I think building a simple module like below using the same pattern with aliasing and using the expected aliased provider in at least one resource should produce, e.g.
Then in the module:
Additional Context
N/A
References
The text was updated successfully, but these errors were encountered: