pulumi/pkg/resource/deploy
Fraser Waters 59fcba1b7b
Support parameterized packages in `pulumi import`
The `pulumi import` command allows users to import existing provider
resources into a Pulumi stack, accepting the type of resource to import,
a name for the resource that will be created in the stack, and some "ID"
that identifies the existing resource in the provider. Historically, the
type has been sufficient to infer which provider offers the resource,
since package names were in a one-to-one correspondence with plugin
names. Now that we support parameterized providers, however, this is no
longer the case -- we might wish to import a `random:index/id:Id`, but
where the `random` package is a dynamically-bridged instance of the
Terraform `random` provider produced by the `terraform-provider` plugin.

This change makes `import` aware of parameterizations by letting it deal
with fully-specified package descriptors, as opposed to just plugin
specifications. In doing so, `import` can now support importing
parameterized resources. That said, it still does not support code
generation for such imports (that is, `--generate-code` must be set to
`false`) -- this will come in a later change.

Part of #17507
2025-01-08 11:19:35 +00:00
..
deploytest Add GetRequiredPackages to the language host (#17894) 2024-12-02 20:24:23 +00:00
providers Support parameterized packages in `pulumi import` 2025-01-08 11:19:35 +00:00
builtins.go Enable `pulumi:pulumi:getResource` to hydrate `Read` resources (#18070) 2024-12-22 20:13:43 +00:00
builtins_test.go Enable `pulumi:pulumi:getResource` to hydrate `Read` resources (#18070) 2024-12-22 20:13:43 +00:00
deployment.go Enable `pulumi:pulumi:getResource` to hydrate `Read` resources (#18070) 2024-12-22 20:13:43 +00:00
deployment_executor.go Centralize resource state dependency traversal (#17320) 2024-09-23 08:37:34 +00:00
deployment_executor_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
deployment_test.go Check language plugins in about tests (#18007) 2024-12-11 17:45:19 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
import.go Support parameterized packages in `pulumi import` 2025-01-08 11:19:35 +00:00
import_test.go Have `Host.Provider` accept a `PackageDescriptor` (#17244) 2024-09-12 13:17:30 +00:00
manifest.go Split Manifest type to it's own file (#8712) 2022-01-10 12:25:24 +00:00
manifest_test.go Refactor: move plugin kind to apitype (#15946) 2024-04-25 17:30:30 +00:00
plan.go Check language plugins in about tests (#18007) 2024-12-11 17:45:19 +00:00
plan_test.go [ci] `pkg/resource/deploy` coverage (#14831) 2023-12-19 16:14:40 +00:00
snapshot.go Persist metadata about snapshot integrity errors (#17291) 2024-11-06 17:35:27 +00:00
snapshot_test.go Fix flake in TestSnapshotPrune_FixesDanglingReferences (#17492) 2024-10-07 08:55:16 +00:00
source.go allow component providers to return more detailed error messages (#17306) 2024-09-25 15:38:36 +00:00
source_error.go Clean up deployment options (#16357) 2024-06-11 13:37:57 +00:00
source_error_test.go Clean up deployment options (#16357) 2024-06-11 13:37:57 +00:00
source_eval.go Support parameterized packages in `pulumi import` 2025-01-08 11:19:35 +00:00
source_eval_test.go Support parameterized packages in `pulumi import` 2025-01-08 11:19:35 +00:00
source_null.go Clean up deployment options (#16357) 2024-06-11 13:37:57 +00:00
source_query.go Support parameterized packages in `pulumi import` 2025-01-08 11:19:35 +00:00
source_query_test.go Add GetRequiredPackages to the language host (#17894) 2024-12-02 20:24:23 +00:00
state_builder.go Normalize URNs in `DeletedWith` references (#17666) 2024-11-05 13:27:11 +00:00
state_builder_test.go Normalize URNs in `DeletedWith` references (#17666) 2024-11-05 13:27:11 +00:00
step.go Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
step_executor.go Enable `pulumi:pulumi:getResource` to hydrate `Read` resources (#18070) 2024-12-22 20:13:43 +00:00
step_executor_test.go Clean up deployment options (#16357) 2024-06-11 13:37:57 +00:00
step_generator.go Autonaming configuration in experimental mode (#17916) 2024-12-10 14:03:27 +00:00
step_generator_test.go Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
step_test.go Add input keys from diff during import step to warning and error message (#17312) 2024-09-25 13:21:50 +00:00
target.go Allow accessing configuration in Python dynamic providers (#17673) 2024-11-07 10:12:24 +00:00
target_test.go upgrade to latest version of golangci-lint (#15977) 2024-04-19 06:20:33 +00:00