opentofu/internal
kmoe 28643516b2
Plannable import 3: Make import plannable (#33085)
During a plan, Terraform now checks for the presence of import blocks.

For each resource in config, if an import block is present with a matching address, planning that node will now trigger an ImportResourceState and ReadResource. The resulting state is treated as the node's "refresh state", and planning proceeds as normal from there.

The walkImport operation is now only used for the legacy "terraform import" CLI command. This is the only case under which the plan should produce graphNodeImportStates.
2023-04-28 23:45:43 +01:00
..
addrs Checks: Refactor existing check addrs and add new check block addr (#32733) 2023-03-23 09:04:21 +01:00
backend Fix goimports discrepancies 2023-04-26 14:33:13 -04:00
builtin allow terraform_data to import 2023-02-14 09:37:21 -05:00
checks Checks: Introduce check blocks into the terraform node and transform graph (#32735) 2023-03-23 16:07:31 +01:00
cloud Emit warnings for certain run events in cloud backend (#33020) 2023-04-17 08:53:47 -07:00
command add resource_drift logtype 2023-04-24 15:08:33 -04:00
communicator fix typo in upload size check 2022-11-11 14:25:34 -05:00
configs configs: add import block (#33081) 2023-04-26 16:28:11 +01:00
copy test: use T.TempDir to create temporary test directory (#30803) 2022-04-08 17:34:16 +01:00
dag Clarify some comments in internal/dag 2022-10-06 15:10:33 -07:00
depsfile Ignore existing package hashes for providers lock command (#31389) 2022-07-20 13:27:24 +01:00
didyoumean didyoumean: move from "helper" to "internal" 2020-10-02 13:35:07 -07:00
e2e fix: pre allocate for composite literal 2022-11-22 02:20:54 +09:00
experiments build: Use Go 1.19 2022-08-22 10:59:12 -07:00
getmodules add XTerraformGetLimit to prevent redirect loops 2022-06-01 12:46:22 -04:00
getproviders build: Use Go 1.19 2022-08-22 10:59:12 -07:00
grpcwrap s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
helper/slowmessage remove wrapped streams and readline 2021-10-28 11:51:39 -04:00
httpclient backend/azurerm: removing ADAL support 2022-05-18 16:56:10 +02:00
initwd initwd: Add fake range for fake root module 2023-03-06 14:35:06 -05:00
instances InstancesForModule should not panic 2021-12-17 13:31:41 -05:00
ipaddr build: Use Go 1.19 2022-08-22 10:59:12 -07:00
lang Feat: Add strcontains function and documentation (#33069) 2023-04-26 20:41:32 +01:00
legacy Remove redundant CheckCoreVersionRequirements 2023-03-06 09:14:28 -05:00
logging cleanup panic output 2021-12-17 11:57:52 -05:00
modsdir sort modules.json for stable order (#32618) 2023-02-13 18:26:16 +01:00
moduledeps Move plugin/ and plugin6/ to internal/plugin{,6}/ 2021-05-17 14:09:07 -07:00
moduletest fixup broken test fixtures 2022-07-06 13:47:35 -04:00
plans Plannable import 3: Make import plannable (#33085) 2023-04-28 23:45:43 +01:00
plugin s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
plugin6 fix: pre allocate for composite literal 2022-11-22 02:20:54 +09:00
provider-simple s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
provider-simple-v6 s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
provider-terraform/main Move plugin/ and plugin6/ to internal/plugin{,6}/ 2021-05-17 14:09:07 -07:00
providercache cliconfig: Allow forcing use of the plugin cache despite the lock file 2023-01-25 08:23:01 -08:00
providers s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
provisioner-local-exec/main Move plugin/ and plugin6/ to internal/plugin{,6}/ 2021-05-17 14:09:07 -07:00
provisioners Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
refactoring initwd: Switch from earlyconfig to configs 2023-03-06 09:14:28 -05:00
registry Fix goimports discrepancies 2023-04-26 14:33:13 -04:00
repl Unify all sensitive value plan output as "(sensitive value)" 2022-10-24 12:50:46 -06:00
replacefile Upgrade to Go 1.17 2021-08-17 15:20:05 -07:00
states Checks: Introduce check blocks into the terraform node and transform graph (#32735) 2023-03-23 16:07:31 +01:00
terminal remove the use of panicwrap 2021-10-28 11:51:39 -04:00
terraform Plannable import 3: Make import plannable (#33085) 2023-04-28 23:45:43 +01:00
tfdiags checks: hide check diagnostics during plans that will not wait for approval (#32938) 2023-04-11 10:54:30 +02:00
tfplugin5 go get cloud.google.com/go/storage@v1.28.0 (#32203) 2022-11-21 13:14:55 +00:00
tfplugin6 go get cloud.google.com/go/storage@v1.28.0 (#32203) 2022-11-21 13:14:55 +00:00