purple-megabyte-83002
02/01/2023, 1:11 AMconst repo = new aws.ecr.Repository(
`${name}-image`,
{
tags: {
Name: 'free-api Lambda',
},
},
{ provider: usEast1AwsProvider },
);
log
Diagnostics:
docker-buildkit:index:Image (reimage-lambda-image):
error: error reading from server: EOF
pulumi:pulumi:Stack (free-api-free-api.dev):
panic: interface conversion: interface {} is resource.Computed, not resource.PropertyMap
goroutine 42 [running]:
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)|github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)>
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.48.0/go/common/resource/properties.go:431
main.(*dockerBuildkitProvider).Diff(0xf0ffa0?, {0xc000175850?, 0x8867b5?}, 0xc000462850)
/home/runner/work/pulumi-docker-buildkit/pulumi-docker-buildkit/cmd/pulumi-resource-docker-buildkit/main.go:125 +0x7f1
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0xf0ffa0|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0xf0ffa0>, 0xc0000afbc0}, {0xd54300?, 0xc000462850})
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.48.0/proto/go/provider.pb.go:3728 +0x78
<http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0xf0ffa0|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0xf0ffa0>, 0xc0000af6e0}, {0xd54300, 0xc000462850}, 0xc000032500, 0xc00000e8e8)
/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x3f9
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0xd81680|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0xd81680>?, 0xc00069c070}, {0xf0ffa0, 0xc0000af6e0}, 0xc0004627e0, 0xc0003f5ac0)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.48.0/proto/go/provider.pb.go:3730 +0x138
<http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc0006ae000|google.golang.org/grpc.(*Server).processUnaryRPC(0xc0006ae000>, {0xf143b8, 0xc000602820}, 0xc00046e5a0, 0xc000698210, 0x14ae5e8, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.49.0/server.go:1301 +0xb0b
<http://google.golang.org/grpc.(*Server).handleStream(0xc0006ae000|google.golang.org/grpc.(*Server).handleStream(0xc0006ae000>, {0xf143b8, 0xc000602820}, 0xc00046e5a0, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.49.0/server.go:1642 +0xa1b
<http://google.golang.org/grpc.(*Server).serveStreams.func1.2()|google.golang.org/grpc.(*Server).serveStreams.func1.2()>
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.49.0/server.go:938 +0x98
created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.49.0/server.go:936 +0x28a
error: [runtime] Error: failed to register new resource default-vpcx [awsx:ec2:DefaultVpc]: Resource monitor is terminating
at Object.registerResource (/home/john/workspace/nxfree/node_modules/@pulumi/runtime/resource.ts:339:27)
at new Resource (/home/john/workspace/nxfree/node_modules/@pulumi/resource.ts:398:13)
at new ComponentResource (/home/john/workspace/nxfree/node_modules/@pulumi/resource.ts:891:9)
at new DefaultVpc (/home/john/workspace/nxfree/node_modules/@pulumi/ec2/defaultVpc.ts:52:9)
at Object.<anonymous> (/home/john/workspace/nxfree/apps/free-api/src-infra/vpc/default.ts:5:28)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Module.m._compile (/home/john/workspace/nxfree/node_modules/@pulumi/pulumi/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Object.require.extensions.<computed> [as .ts] (/home/john/workspace/nxfree/node_modules/@pulumi/pulumi/node_modules/ts-node/src/index.ts:442:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
error: [runtime] Error: invocation of aws:route53/getZone:getZone returned an error: error reading from server: read tcp 127.0.0.1:37606->127.0.0.1:41451: use of closed network connection
at Object.callback (/home/john/workspace/nxfree/node_modules/@pulumi/runtime/invoke.ts:172:33)
at Object.onReceiveStatus (/home/john/workspace/nxfree/node_modules/@grpc/grpc-js/src/client.ts:338:26)
at Object.onReceiveStatus (/home/john/workspace/nxfree/node_modules/@grpc/grpc-js/src/client-interceptors.ts:426:34)
at Object.onReceiveStatus (/home/john/workspace/nxfree/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
at /home/john/workspace/nxfree/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
at processTicksAndRejections (node:internal/process/task_queues:78:11)
"@pulumi/pulumi": "~3.53.1",
"@pulumi/aws": "~5.28.0",
we are stuck for now, Any idea to fix ?billowy-army-68599
02/01/2023, 1:31 AMpurple-megabyte-83002
02/01/2023, 10:59 AMimport * as aws from '@pulumi/aws';
import * as pulumi from '@pulumi/pulumi';
const awsCfg = new pulumi.Config('aws');
const usEast1AwsProvider = new aws.Provider(`us-east-1-aws-provider`, {
assumeRole: awsCfg.requireObject('assumeRole'),
region: 'us-east-1',
});
export default usEast1AwsProvider;
melodic-tomato-39005
02/01/2023, 3:33 PM“@pulumi/pulumi”: “~3.53.1",but the stack trace says
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.48.0That doesn’t seem quite right. Maybe there’s a mismatch?
purple-megabyte-83002
02/01/2023, 4:22 PMapply()
to await the needed object helped me solve the issue. thank youmelodic-tomato-39005
02/01/2023, 4:23 PM