pulumi/pkg
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
..
asset Move some asset code to pkg (#15162) 2024-01-17 11:30:37 +00:00
authhelpers Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
backend retry deletes in a bucket if they fail (#18059) 2024-12-18 09:38:13 +00:00
channel Move `sdk/go/common/channel` to `pkg` (#17895) 2024-12-02 16:25:50 +00:00
cmd/pulumi plugin rm: show unrecognized kind correctly and usage string (#18179) 2025-01-08 07:36:52 +00:00
codegen [sdk/program-gen] Implementing DeferredOutput for Go SDK and program-gen (#17885) 2025-01-04 18:47:30 +00:00
display Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
engine Support parameterized packages in `pulumi import` 2025-01-08 11:19:35 +00:00
graph Support topologically sorting snapshots (#17403) 2024-10-01 08:45:35 +00:00
importer [cli/import] Fix undefined variable errors in code generation when imported resources use a parent or provider (#16786) 2024-07-25 13:53:44 +00:00
operations Move resource.URN to urn.URN (#15689) 2024-03-14 15:28:32 +00:00
resource Support parameterized packages in `pulumi import` 2025-01-08 11:19:35 +00:00
secrets Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
testing/integration Honor opts.PreviewCommandlineFlags in preview after refresh (#18063) 2024-12-17 19:04:27 +00:00
util Update golangci-lint (#17972) 2024-12-10 11:50:38 +00:00
workspace Implement plugin download cancellation (#17621) 2024-11-12 18:04:25 +00:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Only use gRPC to communicate with the Java host (#18138) 2025-01-03 16:48:13 +00:00
go.sum Only use gRPC to communicate with the Java host (#18138) 2025-01-03 16:48:13 +00:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.