hi, i'm trying to set up a FargateService with a n...
# general
t
hi, i'm trying to set up a FargateService with a non-default VPC and I keep running into this error on preview
Copy code
Diagnostics:
  pulumi:pulumi:Stack (toronto):
    error: Error: invocation of aws:ec2/getVpc:getVpc returned an error: invoking aws:ec2/getVpc:getVpc: 1 error occurred:
        * no matching EC2 VPC found
    
    
        at Object.callback (/home/julian/betx/infra/node_modules/@pulumi/runtime/invoke.ts:162:33)
        at Object.onReceiveStatus (/home/julian/betx/infra/node_modules/@grpc/grpc-js/src/client.ts:338:26)
        at Object.onReceiveStatus (/home/julian/betx/infra/node_modules/@grpc/grpc-js/src/client-interceptors.ts:426:34)
        at Object.onReceiveStatus (/home/julian/betx//infra/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
        at /home/julian/betx/infra/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
        at processTicksAndRejections (node:internal/process/task_queues:78:11)
i am using a custom VPC for an ECS service, but trying to do
pulumi up -v 4...7
doesn't seem to show anything useful. how can I debug this? for reference, i deleted the default VPC.
l
What parameters are you passing to getVpc? It looks like you're trying to look up a VPC that doesn't exist. Why are you calling getVpc, if you're using a VPC that you've created? You should be able to use the Vpc instance directly?