microscopic-pilot-97530
average-lifeguard-69220
06/22/2018, 7:50 PMaverage-lifeguard-69220
06/22/2018, 7:51 PMcolossal-beach-47527
06/22/2018, 7:52 PMpulumi refresh
will correct this. Refresh essentially trues up your resource checkpoint file with reality. If that doesn’t work, then you can pulumi stack export > checkpoint.json
and manually remove the reference to the EC2 instance. Then run pulumi stack import < checkpoint.json
.average-lifeguard-69220
06/22/2018, 7:55 PM$ pulumi refresh
Please choose a stack, or create a new one: myapp
warning: could not detect GitHub project information: could not read origin information: remote not found
Previewing refresh of stack 'myapp'
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xabc009]
goroutine 61 [running]:
<http://github.com/pulumi/pulumi/pkg/backend/cloud.(*tokenSource).GetToken(...)|github.com/pulumi/pulumi/pkg/backend/cloud.(*tokenSource).GetToken(...)>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/cloud/state.go:87
<http://github.com/pulumi/pulumi/pkg/backend/cloud.(*cloudSnapshotPersister).Save|github.com/pulumi/pulumi/pkg/backend/cloud.(*cloudSnapshotPersister).Save>(0xc420327c80, 0xc42012a620, 0xc420078f88, 0xc4203b5c78)
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/cloud/snapshot.go:32 +0x79
<http://github.com/pulumi/pulumi/pkg/backend.(*SnapshotManager).mutate.func1()|github.com/pulumi/pulumi/pkg/backend.(*SnapshotManager).mutate.func1()>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/snapshot.go:80 +0x6d
<http://github.com/pulumi/pulumi/pkg/backend.NewSnapshotManager.func1(0xc4202db680)|github.com/pulumi/pulumi/pkg/backend.NewSnapshotManager.func1(0xc4202db680)>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/snapshot.go:319 +0x49
created by <http://github.com/pulumi/pulumi/pkg/backend.NewSnapshotManager|github.com/pulumi/pulumi/pkg/backend.NewSnapshotManager>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/snapshot.go:317 +0x114
average-lifeguard-69220
06/22/2018, 7:56 PM$ pulumi version
v0.12.2
colossal-beach-47527
06/22/2018, 7:57 PMrefresh
recently. I’d be curious if it repros with the newer CLI (v0.14). But in the mean time, does stack export
and stack import
work?colossal-beach-47527
06/22/2018, 7:57 PMaverage-lifeguard-69220
06/22/2018, 7:57 PMaverage-lifeguard-69220
06/22/2018, 7:57 PMcolossal-beach-47527
06/22/2018, 8:01 PMpulumi update
again, and remove references to the ec2 instance in the code, then you shouldn’t have any problem? Since pulumi.com doesn’t have any EC2 instances associated with your stack?tall-librarian-49374
06/22/2018, 9:31 PMbig-soccer-75859
06/23/2018, 3:27 PMbig-soccer-75859
06/23/2018, 3:32 PMbig-soccer-75859
06/23/2018, 5:21 PMbig-soccer-75859
06/23/2018, 5:21 PMDiagnostics:
global: global
error: Error serializing '(ev, ctx, cb) => { let body; ...': api.js(234,106)
'(ev, ctx, cb) => { let body; ...': api.js(234,106): captured
variable 'route' which indirectly referenced
'(req, res, next) => { lodash.map([1, ...': index.js(14,25): which captured
module './node_modules\\lodash\\lodash.js' which indirectly referenced
function 'lodash': lodash.js(1662,19): which could not be serialized because
the function form was not understood.
Function code:
Capturing modules can sometimes cause problems.
Consider using import('./node_modules\\lodash\\lodash.js') or require('./node_modules\\lodash\\lodash.js') inside '(req, res, next) => { lodash.map([1, ...': index.js(14,25)
error: an unhandled error occurred: Program exited with non-zero exit code: 1
big-soccer-75859
06/23/2018, 5:21 PMmicroscopic-florist-22719
await import
syntax.microscopic-florist-22719
incalculable-sundown-82514
06/23/2018, 5:44 PMincalculable-sundown-82514
06/23/2018, 5:45 PMstocky-spoon-28903
06/23/2018, 5:48 PMVpc
, Ec2
) - the idiomatic thing in Go is to spell acronyms out in all caps. Was this a conscious decision to match other SDKs or just an artefact of how the provider SDK gets generated?stocky-spoon-28903
06/23/2018, 10:50 PMstocky-spoon-28903
06/23/2018, 10:51 PMazs, err := aws.LookupAvailabilityZones(ctx, &aws.GetAvailabilityZonesArgs{
State: "available",
})
if err != nil {
return nil, errors.Wrap(err, "error looking up availability zones")
}
// use: len(azs.Names.([]string)) => panic because it's []interface{}
stocky-spoon-28903
06/23/2018, 10:51 PMstocky-spoon-28903
06/23/2018, 11:00 PMwhite-balloon-205
interface{}
as the element type of input/outputs for all resource and data source properties to make these APIs more natural to use.stocky-spoon-28903
06/23/2018, 11:11 PMstocky-spoon-28903
06/23/2018, 11:11 PMbland-memory-40988
06/24/2018, 1:02 AM