gray-oxygen-33383
12/09/2024, 8:21 PMpulumi login
via exec(). It looks like this is supported by including project configuration when configuring your stack, something like:
s, err := auto.NewStackInlineSource(ctx, stackName, projectName, deployFunc, auto.Project( workspace.Project{
Name: tokens.PackageName( projectName ),
Runtime: workspace.NewProjectRuntimeInfo( "golang", OPTS ),
Backend: &workspace.ProjectBackend{
URL: "<storage URL>",
},
} ))
This seems simple in TypeScript (which just takes strings, not complex objects). But in Go, OPTS
needs to be a map of strings to interfaces. Including an empty map or nil
results in a nil pointer deref. It seems like it wants at least one specific option in there, but I can't find any documentation that explains what it might be.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by