Skip to content
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

[Bug]: no schema available for snowflake_role while reading state #3291

Closed
1 task
jsantora-uom opened this issue Dec 15, 2024 · 2 comments
Closed
1 task
Assignees
Labels
category:migration Issues connected with migration to v1.0.0. general-usage General help/usage questions

Comments

@jsantora-uom
Copy link

jsantora-uom commented Dec 15, 2024

Terraform CLI Version

latest

Terraform Provider Version

=1.0.0

Company Name

No response

Terraform Configuration

resource "snowflake_role" "example" {
  provider = snowflake.USERADMIN
  name     = "example
  comment  = "example"
}

Category

category:resource

Object type(s)

resource:role

Expected Behavior

Plan does not fail as no parameters have change, only snowflake terraform resource name.

Actual Behavior

Migrating snowflake provider from 0.99 to 1.0.0. Terraform plan fails when changing from snowflake_role to snowflake_account_role resource.

Terraform plan fails with error below:
image

Steps to Reproduce

  1. create snowflake role with v 0.99.0
  2. migrate to v 1.0.0
  3. update resource name to snowflake_account_role (from snowflake_role in 0.99.0)
  4. run terraform plan

How much impact is this issue causing?

Medium

Logs

No response

Additional Information

No response

Would you like to implement a fix?

  • Yeah, I'll take it 😎
@jsantora-uom jsantora-uom added the bug Used to mark issues with provider's incorrect behavior label Dec 15, 2024
@sfc-gh-jmichalak
Copy link
Collaborator

Hi @jsantora-uom 👋

snowflake_role has been removed in v1.0.0. Please first change snowflake_role to snowflake_account_role in v0.99, and then upgrade to v1.0.0 (see migration guide).

@sfc-gh-jmichalak sfc-gh-jmichalak self-assigned this Dec 16, 2024
@sfc-gh-jmichalak sfc-gh-jmichalak added general-usage General help/usage questions and removed bug Used to mark issues with provider's incorrect behavior labels Dec 16, 2024
@jsantora-uom
Copy link
Author

Thanks @sfc-gh-jmichalak , that has been easier than initially thought.

@sfc-gh-asawicki sfc-gh-asawicki added the category:migration Issues connected with migration to v1.0.0. label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:migration Issues connected with migration to v1.0.0. general-usage General help/usage questions
Projects
None yet
Development

No branches or pull requests

3 participants