mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Changelog: plannable import (#33189)
* Update CHANGELOG.md Co-authored-by: CJ Horton <17039873+radditude@users.noreply.github.com> --------- Co-authored-by: CJ Horton <17039873+radditude@users.noreply.github.com>
This commit is contained in:
parent
1172d40d7b
commit
dc3d37c2b7
10
CHANGELOG.md
10
CHANGELOG.md
@ -10,6 +10,16 @@ NEW FEATURES:
|
||||
Unlike the existing `precondition` and `postcondition` blocks, Terraform will not halt execution should the scoped data block fail or error or if any of the assertions fail.
|
||||
This allows practitioners to continually validate the state of their infrastructure outside the usual lifecycle management cycle.
|
||||
|
||||
* `import` blocks for importing infrastructure: Root module authors can now use the `import` block to declare their intent that Terraform adopt an existing resource.
|
||||
|
||||
Import is now a configuration-driven, plannable action, and is processed as part of a normal plan. Running `terraform plan` will show a summary of the resources that Terraform has planned to import, along with any other plan changes.
|
||||
|
||||
The existing `terraform import` CLI command has not been modified.
|
||||
|
||||
This is an early version of the `import` block feature, for which we are actively seeking user feedback to shape future development. The `import` block currently does not support interpolation in the `id` field, which must be a string.
|
||||
|
||||
* Generating configuration for imported resources: in conjunction with the `import` block, this feature enables easy templating of configuration when importing existing resources into Terraform. A new flag `-generate-config-out=PATH` is added to `terraform plan`. When this flag is set, Terraform will generate HCL configuration for any resource included in an `import` block that does not already have associated configuration, and write it to a new file at `PATH`. Before applying, review the generated configuration and edit it as necessary.
|
||||
|
||||
* Adds a new `plantimestamp` function that returns the timestamp at plan time. This is similar to the `timestamp` function which returns the timestamp at apply time.
|
||||
* Adds a new `strcontains` function that checks whether a given string contains a given substring. [GH-33069]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user