-
Notifications
You must be signed in to change notification settings - Fork 427
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
[Feature]: Is it possible to have an option to disable the limitation on preview features? #3299
Comments
Hi @yinxu0619 👋 We were considering it; however, for now, we don't want to allow it. The main reason is that we want to emphasize the fact that certain features are in preview and kind of "enforce" our customers to explicitly agree to their state. Allowing to set all will basically mean that the majority of users will use this option without taking a moment to think about which resources are stable and which are not. We want to avoid it. However, there's a way to simplify your setup. You can provide a
This variable can be reused across many providers. However, I'm not sure how it translates to jsonnet. |
Hi @sfc-gh-asawicki thanks for the update! I think we can ignore the issue of Jsonnet rendering for now. My current main.tf.jsonnet is structured like this, and if I follow the example you provided:
During the plan phase, it correctly prints out the changes, but it also raises the following error:
Could you please help identify what might be wrong with my main.tf.json? |
I’ve created a new main.tf.json file to focus solely on the snowflake_network_rule_resource resource. Below is the content of the main.tf.json file:
the output of terraform apply as below
|
Hey @yinxu0619. You have to set enabled preview features for each provider alias separately. You can use what @sfc-gh-jmichalak suggested in this #3299 (comment) if you are interested in setting the same values for each alias. |
Company Name
Use Cases or Problem Statement
Hi there, hope you’re doing well.
We are using Jsonnet to render the terraform main.tf file. Since upgrading to v1.0.0, the first GA release, we’ve noticed that many behaviors have changed. The preview_features_enabled setting has had the most significant impact on us. Here’s an example:
We define different aliases in the Snowflake provider to execute different tasks with different roles. If we need to use snowflake_account_password_policy_attachment, we should add it to:
Even with that change, when executing terraform plan, we still encounter the error.
I realize that we might need to append the snowflake.preview_features_enabled to the corresponding resources individually. However, since we are running different versions of the provider, this could lead to a messy configuration.
Is it possible to add an environment variable that would unlock the preview resources globally?
thanks
xyin
Category
category:other
Object type(s)
No response
Proposal
add an environment variable that would unlock the preview resources globally
How much impact is this issue causing?
Medium
Additional Information
N/A
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: