sparse-intern-71089
06/23/2020, 4:03 PMsalmon-account-74572
06/23/2020, 4:04 PMsalmon-account-74572
06/23/2020, 4:07 PMREADME.md
in that directory, and when I run pulumi preview
I get this:
Previewing update (dev):
Type Name Plan Info
pulumi:pulumi:Stack gotest2-dev 1 error; 224 messages
pile/
Diagnostics:
pulumi:pulumi:Stack (gotest2-dev):
error: an unhandled error occurred: program exited with non-zero exit code: 2
# <http://github.com/pulumi/pulumi/sdk/v2/go/pulumi|github.com/pulumi/pulumi/sdk/v2/go/pulumi>
fatal error: runtime: out of memory
runtime stack:
(I omitted many lines of output; if you want them, let me know.)salmon-account-74572
06/23/2020, 4:08 PMpackage main
import (
"fmt"
"<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi|github.com/pulumi/pulumi/sdk/v2/go/pulumi>"
"<http://github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2|github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2>"
"<http://github.com/pulumi/pulumi-aws/sdk/v2/go/aws|github.com/pulumi/pulumi-aws/sdk/v2/go/aws>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Define some values for later
// baseName := "custdns"
// keyPair := "aws_vmw_rsa"
// Build the arguments for creating the VPC
vpcArgs := &ec2.vpcArgs{
CidrBlock: pulumi.String("10.52.0.0/16"),
}
// Create the VPC
vpc, err := ec2.NewVpc(ctx, "custdns-vpc", vpcArgs)
if err != nil {
fmt.Println(err.Error())
return err
}
// Export the VPC ID
ctx.Export("VPC ID", vpc.ID())
return nil
})
}
salmon-account-74572
06/23/2020, 4:10 PMpulumi preview
with that code:
Previewing update (dev):
Type Name Plan Info
pulumi:pulumi:Stack gotest-dev 1 error; 223 messages
Diagnostics:
pulumi:pulumi:Stack (gotest-dev):
# <http://github.com/pulumi/pulumi/sdk/v2/go/pulumi|github.com/pulumi/pulumi/sdk/v2/go/pulumi>
fatal error: runtime: out of memory
runtime stack:
salmon-account-74572
06/23/2020, 4:10 PMsalmon-account-74572
06/23/2020, 4:11 PMsalmon-account-74572
06/23/2020, 4:13 PMpulumi up
instead of pulumi preview
, FWIW.lemon-agent-27707
06/23/2020, 4:22 PMlemon-agent-27707
06/23/2020, 4:30 PMpulumi plugin ls
so we can check the version of the AWS provider plugin?salmon-account-74572
06/23/2020, 4:32 PMlemon-agent-27707
06/23/2020, 4:32 PMpulumi preview
.
Definitely sounds like there's something up here. I don't think I've seen that out of memory exception. I'd definitely like to look into this.salmon-account-74572
06/23/2020, 4:32 PMNAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 2.9.1 222 MB n/a 18 hours ago
aws resource 2.0.0 224 MB n/a 15 hours ago
aws resource 1.31.0 224 MB n/a 18 hours ago
aws resource 1.17.0 198 MB n/a 18 hours ago
docker resource 2.2.3 40 MB n/a 26 minutes ago
salmon-account-74572
06/23/2020, 4:35 PMpulumi
commands via an SSH session on a Debian VM running on KVM/Libvirt on my Fedora laptop.lemon-agent-27707
06/23/2020, 4:45 PMsalmon-account-74572
06/23/2020, 4:45 PMlemon-agent-27707
06/23/2020, 4:45 PMlemon-agent-27707
06/23/2020, 4:46 PMgo build -o main
salmon-account-74572
06/23/2020, 4:46 PMlemon-agent-27707
06/23/2020, 4:47 PMlemon-agent-27707
06/23/2020, 4:48 PMsalmon-account-74572
06/23/2020, 4:48 PMlemon-agent-27707
06/23/2020, 4:49 PMsalmon-account-74572
06/23/2020, 4:50 PMsalmon-account-74572
06/23/2020, 5:00 PMgo build -o main
on the Debian VM with 2GB of RAM, Pulumi 2.4.0, AWS plugin 2.7.0, and Go 1.14.4 (all other AWS plugin versions removed).lemon-agent-27707
06/23/2020, 5:10 PMsalmon-account-74572
06/23/2020, 5:14 PMpulumi up
(using the "aws-go-webserver" example). Let me "reset" the Debian VM and see what happens there.lemon-agent-27707
06/23/2020, 5:17 PMgo run
style of invocation, which may very well take up less memory than the explicit build step you were testing.salmon-account-74572
06/23/2020, 5:28 PMsalmon-account-74572
06/23/2020, 5:33 PMpulumi up
to work (I didn't actually perform the update, but it didn't crash as it had earlier). It seems that I was just being too stingy with resources---thanks for your help troubleshooting.salmon-account-74572
06/23/2020, 5:37 PMpulumi up
), so perhaps it would be worthwhile to document that 4GB of RAM is the minimum recommended memory allocation?lemon-agent-27707
06/23/2020, 5:50 PMsalmon-account-74572
06/23/2020, 6:00 PM