You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(datastore): make restore_config optional() to match x-ui-overrides-only (#367)
Several datastore modules marked restore_config x-ui-overrides-only in
facets.yaml (not a primary spec field) but declared it as a non-optional
attribute in variables.tf. A spec that omitted restore_config passed schema
validation, then failed terraform plan with
`attribute "restore_config" is required` — no signal until plan time.
Wrap restore_config in optional(...) with a safe default (restore_from_backup
= false; {} for the all-optional azure mysql block) so the un-set case just
works. Existing validations already short-circuit on the no-restore path, so
behavior is unchanged when the block is provided.
Modules fixed: mysql/aws-rds, postgres/aws-rds, mysql/gcp-cloudsql,
postgres/gcp-cloudsql, mysql/flexible_server, redis/gcp-memorystore.
(imports was already optional everywhere; azure postgres + aws redis already
clean.)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: unni-facets <krishnanunni.menon@facets.cloud>
0 commit comments