-
Notifications
You must be signed in to change notification settings - Fork 15
Fix: env0_configuration_variable import docs #1045
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
base: main
Are you sure you want to change the base?
Conversation
resource "env0_configuration_variable" "project_var" { | ||
name = "project_var_name" | ||
value = "project_var_value" | ||
project_id = "project_var_id" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this differs from the API arg described in the import
config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lkanerv
Thank you for your contribution!
This markdown file is auto-generated, and therefore shouldn't be modified directly. Please add your required changes to the resource file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
autogenerated by tfplugindocs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need to run this, there's an automated github action that updates the docs
Ah, thanks for the heads up! Made my updates to the import example for the resource and regenerated the docs with tfplugindocs. |
Issue & Steps to Reproduce / Feature Request
Fix: adds clarity between provider usage and API behavior
Solution
For project-scope variable imports, makes clear that
project_id
must be defined in theenv0_configuration_variable
resource block (if it is not, then the variable will get replaced and recreated as a GLOBAL variable)For
GLOBAL
variables, do not provideScopeId
. I initially made the mistake of passing the org ID asScopeId
, which results in the following:Error: Could not find variable
. Ensures that the provider docs align with the API expectations.