Closed stikkireddy closed 3 years ago
@nfx
So after going through these changes altering is_no_public_ip_enabled to true will cause issues on existing deployed MWS. we would require a state migration. From the defaulted false to true and a schema change. The reason being.
Scenario:
Options will be:
is_no_public_ip_enabled
never sent any value to the server ever because it was omitempty and the server just defaulted to what ever when the value was not sent. So by default the workspace deployed should be NPIP. There is no way of confirming because read api for that does not exist (tech debt) but this makes it such that there is minimal impact to folks
- Ignore this and continue to not support is_no_public_ip_enabled.
I'd prefer this option and close this issue with wontfix
. is_no_public_ip_enabled
is removed from documentation anyway.
Hi there,
There is a field
is_no_public_ip_enabled
is set as omitempty and the default on server side is set to true. It is impossible for the api request to return a false via post request. https://github.com/databrickslabs/terraform-provider-databricks/blob/d8fcb5c8bcd748a77685a5a94a6e4458ed7d756d/mws/mws.go#L86-L100The field should not be omitempty but should be defaulted to true by the terraform resource.
The
pricing_tier
field has been added to the workspace and that should be a new field to the workspace resource.This should also increment the schema version.