Closed eval-on-point closed 1 year ago
@eval-on-point This issue stems from the combination of:
To fix this issue, this is what I'm changing for this resource:
release_date_greater_than_months
, newer_versions_greater_than
, release_cadence_per_year_less_than
, commits_less_than
, and committers_less_than
.0
(default value for integer in Golang) is not a valid values for these attributes.These do mean that when you upgrade the provider, there may be state drifts for these policy resources as the provide code can't distinguish between default values vs configuration values so it can't automatically upgrade the TF state for you.
I want to create an
xray_operational_risk_policy
that does not check thenewer_versions_greater_than
condition. Removing the condition from myrule.criteria.op_risk_custom
block seems to just default the condition check to its default value rather than disable the condition check.For example:
Creates a policy with rules that look like this:
I want to be able to define this resource such that the box to the left of "Number of releases since greater than" is unchecked.