pulumi/pkg/importer/testdata
Fraser Waters 3cf47c861d
Support codegen for parameterised imports (#18039)
Follow on PR to https://github.com/pulumi/pulumi/pull/18038. This adds
support to the import code generator to support 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 https://github.com/pulumi/pulumi/issues/17507

Co-authored-by: Will Jones <will@sacharissa.co.uk>
2025-01-14 00:33:15 +00:00
..
cases.json Support codegen for parameterised imports (#18039) 2025-01-14 00:33:15 +00:00