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]: Alter stage for directory = "ENABLE = true" #3175

Open
1 task
Serhuela opened this issue Nov 6, 2024 · 1 comment
Open
1 task

[Bug]: Alter stage for directory = "ENABLE = true" #3175

Serhuela opened this issue Nov 6, 2024 · 1 comment
Labels
general-usage General help/usage questions

Comments

@Serhuela
Copy link

Serhuela commented Nov 6, 2024

Terraform CLI Version

1.0.0

Terraform Provider Version

0.55.1

Terraform Configuration

-

Category

category:resource

Object type(s)

resource:stage

Expected Behavior

When attempting to create or modify a stage in Snowflake using Terraform, the property directory = "ENABLE = true" should enable the use of a directory table without errors. Specifically, adding directory = "ENABLE = true" in the Terraform configuration should allow the creation or modification of the stage to proceed successfully.

Actual Behavior

When trying to create or modify a stage with directory = "ENABLE = true", the following error occurs:

Error: error creating stage <stage_name>

However, after manually enabling the directory option in the Snowflake console and running terraform plan, it’s confirmed that the correct parameter is indeed directory = "ENABLE = true". If the stage already has the directory option enabled in Snowflake, Terraform processes the parameter without issues, as it does not attempt to modify or recreate the stage. This suggests the issue occurs only during the initial creation or modification of the directory property.

Steps to Reproduce

1.- Configure a new stage in Terraform with the property directory = "ENABLE = true".
2.- Run terraform apply to create the stage or modify an existing one (supossed it already had not the directory enabled).
3.- Note the error occurring during the stage creation/modification. Note that the error occurs while applying the plan, i.e. after approving the plan.
4.- Create the stage without the directory property.
5.- Manually enable the directory option in the Snowflake console.
6.- Run terraform apply again and observe that directory = "ENABLE = true" is now recognized without issues, and no attempt is made to recreate the stage.

How much impact is this issue causing?

Low

Logs

No response

Additional Information

No response

Would you like to implement a fix?

  • Yeah, I'll take it 😎
@Serhuela Serhuela added the bug Used to mark issues with provider's incorrect behavior label Nov 6, 2024
@sfc-gh-asawicki
Copy link
Collaborator

Hey @Serhuela. Thanks for reaching out to us.

You are using an ancient version of the provider. The logic of the provider has changed multiple times since that version (we are at v0.97.1 now). Please check if this problem is still present in v0.97.

@sfc-gh-asawicki sfc-gh-asawicki added general-usage General help/usage questions and removed bug Used to mark issues with provider's incorrect behavior labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general-usage General help/usage questions
Projects
None yet
Development

No branches or pull requests

2 participants