pulumi/sdk/go/common
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
..
apitype Move EscEnvironmentMetadata to apitype (#17720) 2024-11-08 14:32:13 +00:00
constant Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
diag allow InputPropertyErrors from Calls (#17567) 2024-11-07 09:56:04 +00:00
encoding all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
env Enable Copilot link by default (#17293) 2024-09-20 01:15:16 +00:00
promise Add tests to sdk/go/common/promise for coverage (#17197) 2024-09-08 21:07:08 +00:00
resource Fix nil access violation in plugin.Close (#18090) 2024-12-28 13:01:04 +00:00
slice Nit: Use slice.Prealloc in slice.Map and slice.MapError (#17631) 2024-10-29 15:35:55 +00:00
tail fix race condition in tail better (#18066) 2024-12-18 12:10:53 +00:00
testing Move `sdk/go/common/tools/path` to `pkg` (#17898) 2024-12-02 17:13:30 +00:00
tokens Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
util unflake unhandledInterrupt test (#18075) 2024-12-19 11:59:02 +00:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace Support parameterized packages in `pulumi import` 2025-01-08 11:19:35 +00:00