astonishing-spoon-27005
12/04/2019, 4:09 PMRuntime
attribute of lambda.FunctionArgs
, and the docs say “See [Runtimes][6] for valid values,” but I can’t find this anywhere (it’s not linked on godoc.org). any ideas?astonishing-spoon-27005
12/04/2019, 4:11 PMastonishing-spoon-27005
12/04/2019, 5:19 PMastonishing-spoon-27005
12/05/2019, 3:24 PMtrigger
and didn’t come up with much.green-morning-1318
12/23/2019, 9:47 PMgreen-morning-1318
01/07/2020, 5:22 PMpulumi.Run(func(ctx *pulumi.Context) error {})
from somewhere else in my Go apps? I’m trying to see if I can create one cli with a few target commands to take care of the entire lifecycle of my app (like get dependencies using go get, compiling the sources, and using pulumi to deploy)astonishing-cartoon-37000
01/10/2020, 9:00 PMintegration.ProgramTest
from <http://github.com/pulumi/pulumi/pkg/testing/integration|github.com/pulumi/pulumi/pkg/testing/integration>
and it copies the files to a tmp directory. Does it not copy symlinks?billowy-needle-56870
01/21/2020, 7:14 PMtype Custom struct {
s *pulumi.ResourceState
}
type CustomArgs struct {
}
// NewBucket registers a new resource with the given unique name, arguments, and options.
func NewCustom(ctx *pulumi.Context,
name string, args *CustomArgs, opts ...pulumi.ResourceOpt) (*Custom, error) {
inputs := make(map[string]interface{})
s, err := ctx.RegisterResource("vendoring:x:customresource", name, true, inputs, opts...)
if err != nil {
return nil, err
}
return &Custom{s: s}, nil
}
func (b *Custom) URN() pulumi.URNOutput {
return b.s.URN()
}
error: no resource plugin 'vendoring' found in the workspace or on your $PATH
refined-terabyte-71453
02/07/2020, 10:11 PMaws
plugin. I get an error about it when I run pulumi up
. How can I install the latest version of this pluginwhite-balloon-205
brave-caravan-6336
02/28/2020, 7:35 PMbrave-caravan-6336
02/28/2020, 9:41 PMgreen-morning-1318
03/02/2020, 11:41 PMinstance, _ := ec2.GetInstance(ctx, "lookup", pulumi.ID("my-instance-id"), nil)
where I know the instance ID is correct (I’ve copied it from the UI and when I do a ec2.GetInstances()
it is one of the returned values)
The result when running pulumi up
is
panic: reflect: call of reflect.Value.Type on zero Value
goroutine 23 [running]:
reflect.Value.Type(0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.14/libexec/src/reflect/value.go:1872 +0x183
<http://github.com/pulumi/pulumi/sdk/go/pulumi.marshalInputs(0x23a7900|github.com/pulumi/pulumi/sdk/go/pulumi.marshalInputs(0x23a7900>, 0x0, 0x19, 0x0, 0xc0001418c0, 0xc0002b2280, 0x35, 0x0, 0x0)
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi@v1.11.1/sdk/go/pulumi/rpc.go:76 +0x18a
<http://github.com/pulumi/pulumi/sdk/go/pulumi.(*Context).prepareResourceInputs(0xc0002ea000|github.com/pulumi/pulumi/sdk/go/pulumi.(*Context).prepareResourceInputs(0xc0002ea000>, 0x23a7900, 0x0, 0x22a3581, 0x19, 0xc0001418c0, 0xc0002765c0, 0x0, 0x0, 0x0)
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi@v1.11.1/sdk/go/pulumi/context.go:710 +0x23a
<http://github.com/pulumi/pulumi/sdk/go/pulumi.(*Context).ReadResource.func1(0xc0002765c0|github.com/pulumi/pulumi/sdk/go/pulumi.(*Context).ReadResource.func1(0xc0002765c0>, 0xc0002ea000, 0x23b9080, 0x2396460, 0x23a7900, 0x0, 0x22a3581, 0x19, 0xc0001418c0, 0x22936bb, ...)
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi@v1.11.1/sdk/go/pulumi/context.go:315 +0x252
created by <http://github.com/pulumi/pulumi/sdk/go/pulumi.(*Context).ReadResource|github.com/pulumi/pulumi/sdk/go/pulumi.(*Context).ReadResource>
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi@v1.11.1/sdk/go/pulumi/context.go:298 +0x3b1
I’m using Pulumi v1.11.1 with the AWS Provider v1.23.0
Any thoughts on what might be wrong, or thoughts on how to debug further are appreciated 😇worried-raincoat-8829
03/06/2020, 4:19 PMrich-sandwich-54330
03/07/2020, 1:56 PMwhite-airport-48392
03/10/2020, 9:54 AMwhite-airport-48392
03/10/2020, 10:05 AMgreen-morning-1318
03/10/2020, 9:19 PMlambdaPermissions := &lambda.PermissionArgs{
Action: pulumi.String("lambda:InvokeFunction"),
Function: function.Name,
Principal: pulumi.String("<http://apigateway.amazonaws.com|apigateway.amazonaws.com>"),
}
_, err = lambda.NewPermission(ctx, "AllCartsAPIPermission", lambdaPermissions)
if err != nil {
return err
}
I don’t see the API Gateway showing up as a trigger in my Lambda function, but I’m not sure what I’ve missed. Any pointers are appreciated.broad-dog-22463
03/11/2020, 9:06 AMbroad-dog-22463
03/11/2020, 9:06 AMworried-raincoat-8829
03/11/2020, 10:27 AMprehistoric-pillow-672
03/12/2020, 3:51 PMbroad-dog-22463
03/12/2020, 3:52 PMprehistoric-pillow-672
03/12/2020, 3:52 PMbroad-dog-22463
03/12/2020, 4:09 PMprehistoric-pillow-672
03/12/2020, 4:29 PMplain-truck-37089
03/19/2020, 5:31 PMbright-jordan-62321
03/26/2020, 12:57 PMbright-jordan-62321
03/26/2020, 12:57 PMpulumi preview --verbose 9 --logtostderr
Enter your passphrase to unlock config/secrets
(set PULUMI_CONFIG_PASSPHRASE to remember):
Previewing update (dev):
I0326 05:41:04.638422 96424 plugins.go:76] gatherPluginsFromProgram(): gathering plugins from language host
I0326 05:41:04.638643 96424 plugins.go:427] GetPluginPath(language, go, <nil>): found on $PATH /usr/local/bin/pulumi-language-go
I0326 05:41:04.638727 96424 plugin.go:86] Launching plugin 'go' from '/usr/local/bin/pulumi-language-go' with args: 127.0.0.1:61047
I0326 05:41:04.666738 96424 langruntime_plugin.go:170] langhost[go].GetPluginInfo() executing
I0326 05:41:04.667334 96424 langruntime_plugin.go:83] langhost[go].GetRequiredPlugins(proj=pulumi-spike-2,pwd=/Users/zyliu/go/src/pulumi-spike,program=.) executing
I0326 05:41:04.798810 96424 langruntime_plugin.go:92] langhost[go].GetRequiredPlugins(proj=pulumi-spike-2,pwd=/Users/zyliu/go/src/pulumi-spike,program=.) failed: err=failed to execute program cmd: exit status 1
I0326 05:41:04.801887 96424 sink.go:154] defaultSink::Error(error: failed to discover plugin requirements: failed to execute program cmd: exit status 1
<http://github.com/pulumi/pulumi/pkg/resource/plugin.(*defaultHost).GetRequiredPlugins|github.com/pulumi/pulumi/pkg/resource/plugin.(*defaultHost).GetRequiredPlugins>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/resource/plugin/host.go:397
<http://github.com/pulumi/pulumi/pkg/engine.gatherPluginsFromProgram|github.com/pulumi/pulumi/pkg/engine.gatherPluginsFromProgram>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/plugins.go:78
<http://github.com/pulumi/pulumi/pkg/engine.installPlugins|github.com/pulumi/pulumi/pkg/engine.installPlugins>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:209
<http://github.com/pulumi/pulumi/pkg/engine.newUpdateSource|github.com/pulumi/pulumi/pkg/engine.newUpdateSource>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:353
<http://github.com/pulumi/pulumi/pkg/engine.plan|github.com/pulumi/pulumi/pkg/engine.plan>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/plan.go:131
<http://github.com/pulumi/pulumi/pkg/engine.update|github.com/pulumi/pulumi/pkg/engine.update>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:398
<http://github.com/pulumi/pulumi/pkg/engine.Update|github.com/pulumi/pulumi/pkg/engine.Update>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:177
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).apply|github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).apply>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/backend.go:507
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).Preview|github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).Preview>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/backend.go:415
<http://github.com/pulumi/pulumi/pkg/backend.PreviewStack|github.com/pulumi/pulumi/pkg/backend.PreviewStack>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/stack.go:77
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localStack).Preview|github.com/pulumi/pulumi/pkg/backend/filestate.(*localStack).Preview>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/stack.go:68
<http://github.com/pulumi/pulumi/cmd.newPreviewCmd.func1|github.com/pulumi/pulumi/cmd.newPreviewCmd.func1>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/cmd/preview.go:155
<http://github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1|github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/util/cmdutil/exit.go:112
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
main.main
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/main.go:49
runtime.main
/usr/local/Cellar/go/1.14/libexec/src/runtime/proc.go:203
runtime.goexit
/usr/local/Cellar/go/1.14/libexec/src/runtime/asm_amd64.s:1373
)
error: failed to discover plugin requirements: failed to execute program cmd: exit status 1
<http://github.com/pulumi/pulumi/pkg/resource/plugin.(*defaultHost).GetRequiredPlugins|github.com/pulumi/pulumi/pkg/resource/plugin.(*defaultHost).GetRequiredPlugins>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/resource/plugin/host.go:397
<http://github.com/pulumi/pulumi/pkg/engine.gatherPluginsFromProgram|github.com/pulumi/pulumi/pkg/engine.gatherPluginsFromProgram>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/plugins.go:78
<http://github.com/pulumi/pulumi/pkg/engine.installPlugins|github.com/pulumi/pulumi/pkg/engine.installPlugins>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:209
<http://github.com/pulumi/pulumi/pkg/engine.newUpdateSource|github.com/pulumi/pulumi/pkg/engine.newUpdateSource>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:353
<http://github.com/pulumi/pulumi/pkg/engine.plan|github.com/pulumi/pulumi/pkg/engine.plan>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/plan.go:131
<http://github.com/pulumi/pulumi/pkg/engine.update|github.com/pulumi/pulumi/pkg/engine.update>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:398
<http://github.com/pulumi/pulumi/pkg/engine.Update|github.com/pulumi/pulumi/pkg/engine.Update>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:177
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).apply|github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).apply>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/backend.go:507
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).Preview|github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).Preview>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/backend.go:415
<http://github.com/pulumi/pulumi/pkg/backend.PreviewStack|github.com/pulumi/pulumi/pkg/backend.PreviewStack>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/stack.go:77
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localStack).Preview|github.com/pulumi/pulumi/pkg/backend/filestate.(*localStack).Preview>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/stack.go:68
<http://github.com/pulumi/pulumi/cmd.newPreviewCmd.func1|github.com/pulumi/pulumi/cmd.newPreviewCmd.func1>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/cmd/preview.go:155
<http://github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1|github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1>
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/util/cmdutil/exit.go:112
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
main.main
/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/main.go:49
runtime.main
/usr/local/Cellar/go/1.14/libexec/src/runtime/proc.go:203
runtime.goexit
/usr/local/Cellar/go/1.14/libexec/src/runtime/asm_amd64.s:1373
lemon-agent-27707
03/31/2020, 2:30 PMdep
. This includes splitting out sub-modules in all of our projects to have an /sdk
level module to reduce the dependency set. The providers for AWS, Azure, GCP, Random, and AzureAD have been updated with the rest coming soon. Updated templates are available:
pulumi new go
pulumi new aws-go
pulumi new azure-go
pulumi new gcp-go
Important to note is that the import paths for GCP and Azure have changed to be compliant with go module versioning semantics.
<http://github.com/pulumi/pulumi-gcp/sdk/go|github.com/pulumi/pulumi-gcp/sdk/go>
is now <http://github.com/pulumi/pulumi-gcp/sdk/v2/go|github.com/pulumi/pulumi-gcp/sdk/v2/go>
<http://github.com/pulumi/pulumi-azure/sdk/go|github.com/pulumi/pulumi-azure/sdk/go>
is now <http://github.com/pulumi/pulumi-azure/sdk/v2/go|github.com/pulumi/pulumi-azure/sdk/v2/go>
Our examples for AWS, GCP, and Azure have all been updated and have reference go.mod files: https://github.com/pulumi/examples
Let us know if you have any questions or need help updating!