Skip to content

New option --config-mode: replace --full-properties with three modes#665

Open
magodo wants to merge 1 commit into
Azure:mainfrom
magodo:default_trim_zero_default_values
Open

New option --config-mode: replace --full-properties with three modes#665
magodo wants to merge 1 commit into
Azure:mainfrom
magodo:default_trim_zero_default_values

Conversation

@magodo

@magodo magodo commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Introduces a lossless mode between the previous default (trim aggressively) and --full-properties (no trimming):

  • minimal (default): same as the previous default behaviour.
  • lossless (new): keep Optional+Computed attributes so the generated config matches the live state, while still safely trimming zero values (azurerm only) and schema defaults where it preserves semantics.
  • full: keep every property; may require manual edits.

BREAKING: --full-properties, FullConfig and AZTFEXPORT_FULL_PROPERTIES are removed. The old --full-properties=true behaviour now maps to --config-mode=lossless.

…im modes

Introduces a `lossless` mode between the previous default (trim aggressively)
and `--full-properties` (no trimming):

- `minimal` (default): same as the previous default behaviour.
- `lossless` (new): keep Optional+Computed attributes so the generated config
  matches the live state, while still safely trimming zero values (azurerm only) and schema
  defaults where it preserves semantics.
- `full`: keep every property; may require manual edits.

BREAKING: `--full-properties`, `FullConfig` and `AZTFEXPORT_FULL_PROPERTIES`
are removed. The old `--full-properties=true` behaviour now maps to
`--config-mode=lossless`.
@magodo magodo added breaking-change enhancement New feature or request labels Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant