Open TNonet opened 1 year ago
Hi, @TNonet. Thanks for the report! @DayS1eeper @petroprotsakh can you the root cause of the issue?
Thank you!
Setting a null
value here is equivalent to omitting the value
attribute entirely from Terraform's perspective, as
it treats optional attributes as "unset" when a null
value is passed.
That's true for the currently used legacy SDK: you can't tell zero values from unset in provider. Terraform Plugin Framework solves this, but the plans to migrate to it are still ephemeral.
@TNonet can you tell us a use case? Also, do you consider an option to assign a default value to the variable in the source code? For example:
variable "foo" {
default = null
}
If you create a
scalr_variable
with the following specifications:The variable set in the workspace has a incorrect state
I think this is a bug. Either: