pulumi/pkg
Will Jones b842c7296f
Support code generation for parameterized imports
This adds support to `pulumi import` for generating code for resources
from parameterized packages.

This requires two things. Firstly we need the whole state when
generating code so we can look up providers (there was a very old `TODO`
comment that we should have been doing this anyway so we used the
correct package versions). Looking up the provider means we can pull all
the package information off it to look up the schema correctly.

We also emit that package information to the generated PCL as package
blocks, so that the language code generator also has full access to the
package information so it can correctly load schemas inside its
`GenerateProgram` call.

Part of #17507
2025-01-09 16:21:45 +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 Support code generation for parameterized imports 2025-01-09 16:21:45 +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 Support code generation for parameterized imports 2025-01-09 16:21:45 +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.