early-musician-41645
10/29/2019, 6:35 PMconst tentacleVpcId = tentacleConfig.require("vpcId");
console.log("VPC-ID: "+tentacleVpcId);
export const tentacleVpc = awsx.ec2.Vpc.fromExistingIds("tentacle-vpc", {
vpcId: tentacleVpcId,
});
However I get this error:
Error: invocation of aws:ec2/getVpc:getVpc returned an error: invoking aws:ec2/getVpc:getVpc: no matching VPC found
I've checked and rechecked everything (account, credentials, resource ids, config, stack) and still no luck.
I ran a pulumi preview --debug
and I see that there's this output:
Reading AWS VPC: {
Filters: [{
Name: "isDefault",
Values: ["true"]
}]
}
The VPC is not the default one. It's one of many VPCs.
How can I make pulumi get a non-default VPC?gentle-diamond-70147
10/29/2019, 7:00 PMReading AWS VPC ...
output when I do pulumi preview --debug --logtostderr
and I am able to retrieve a non-default VPC using awsx.ec2.Vpc.fromExistingIds
.
Are you on an older awsx version perhaps?early-musician-41645
10/29/2019, 7:03 PMearly-musician-41645
10/29/2019, 7:05 PMerror: Running program '/home/tsi/eshamay/git/cs/octopus-deploy/pulumi/octopus-tentacles' failed with an unhandled exception:
/home/tsi/eshamay/git/cs/octopus-deploy/pulumi/octopus-tentacles/node_modules/@pulumi/awsx/ec2/cidr.js:50
const ipAddressesInBlock = 2 ** trailing1Bits;
^
SyntaxError: Unexpected token *
early-musician-41645
10/29/2019, 7:11 PM