Snowflake-Labs / terraform-provider-snowflake

Terraform provider for managing Snowflake accounts
https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest
MIT License
552 stars 420 forks source link

Error: Provider type mismatch #1458

Open amit0904 opened 1 year ago

amit0904 commented 1 year ago

Provider Version

0.54.0 or 0.53.0

Terraform Version

1.3.6

Describe the bug

I randomly get following error

The local name "snowflake.sysadmin" in module.users represents provider "hashicorp/snowflake", but "snowflake.sysadmin" in module.users.module.user.module.test_grant represents "snowflake-labs/snowflake".

Each provider has its own distinct configuration schema and provider types, so this module's "snowflake.sysadmin" can be assigned only a configuration for snowflake-labs/snowflake, which is not required by module.users.module.user.module.test_grant.

Expected behavior

No such error should appear as the code just runs fine most of the time with no changes.

sfc-gh-asawicki commented 4 months ago

Hey @amit0904. Is this issue still present in the more recent versions of the provider?