mirror of https://github.com/pulumi/pulumi.git
59fcba1b7b
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 |
||
---|---|---|
.. | ||
auto | ||
common | ||
internal | ||
property | ||
pulumi | ||
pulumi-internal/netutil | ||
pulumi-language-go | ||
pulumix | ||
Makefile | ||
README.md |
README.md
Pulumi Golang SDK
This directory contains support for writing Pulumi programs in the Go language. There are two aspects to this:
pulumi/
contains the client language bindings Pulumi program's code directly against;pulumi-language-go/
contains the language host plugin that the Pulumi engine uses to orchestrate updates.
To author a Pulumi program in Go, simply say so in your Pulumi.yaml
name: <my-project>
runtime: go
and ensure you have pulumi-language-go
on your path (it is distributed in the Pulumi download automatically).
By default, the language plugin will use your project's name, <my-project>
, as the executable that it loads. This too
must be on your path for the language provider to load it when you run pulumi preview
or pulumi up
.