important-australia-792
06/16/2022, 11:31 PMimport * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
const vpc = new awsx.ec2.Vpc("custom", {
subnetSpecs:[
{
type: awsx.ec2.SubnetType.Public,
cidrMask: 22,
},
{
type: awsx.ec2.SubnetType.Private,
cidrMask: 20,
},
],
});
The errors i'm receiving are:
Diagnostics:
pulumi:pulumi:Stack (vpc-dev):
error: Running program '/mnt/storage/Cody/projects/grizzlyforce/pulumi/vpc' failed with an unhandled exception:
TSError: ⨯ Unable to compile TypeScript:
index.ts(6,3): error TS2345: Argument of type '{ subnetSpecs: { type: any; cidrMask: number; }[]; }' is not assignable to parameter of type 'VpcArgs | ExistingVpcArgs | ExistingVpcIdArgs'.
Object literal may only specify known properties, and 'subnetSpecs' does not exist in type 'VpcArgs | ExistingVpcArgs | ExistingVpcIdArgs'.
index.ts(8,22): error TS2339: Property 'SubnetType' does not exist on type 'typeof import("/mnt/storage/Cody/projects/grizzlyforce/pulumi/vpc/node_modules/@pulumi/awsx/ec2/index")'.
index.ts(12,22): error TS2339: Property 'SubnetType' does not exist on type 'typeof import("/mnt/storage/Cody/projects/grizzlyforce/pulumi/vpc/node_modules/@pulumi/awsx/ec2/index")'.
at createTSError (/mnt/storage/Cody/projects/grizzlyforce/pulumi/vpc/node_modules/ts-node/src/index.ts:261:12)
at getOutput (/mnt/storage/Cody/projects/grizzlyforce/pulumi/vpc/node_modules/ts-node/src/index.ts:367:40)
at Object.compile (/mnt/storage/Cody/projects/grizzlyforce/pulumi/vpc/node_modules/ts-node/src/index.ts:558:11)
at Module.m._compile (/mnt/storage/Cody/projects/grizzlyforce/pulumi/vpc/node_modules/ts-node/src/index.ts:439:43)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Object.require.extensions.<computed> [as .ts] (/mnt/storage/Cody/projects/grizzlyforce/pulumi/vpc/node_modules/ts-node/src/index.ts:442:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
Outputs:
- vpcId : "vpc-0f42382f75c6d7a70"
- vpcPrivateSubnets: [
- [0]: "subnet-0634fa67343a153e7"
- [1]: "subnet-0bb0cbf6bc1078b1b"
]
- vpcPublicSubnets : [
- [0]: "subnet-0a7f9f9da8c3043e6"
- [1]: "subnet-0fe54f1016b4aa906"
]
{
"compilerOptions": {
"strict": true,
"outDir": "bin",
"target": "es2016",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.ts"
]
}
little-cartoon-10569
06/17/2022, 12:58 AMimportant-australia-792
06/17/2022, 1:04 AMlittle-cartoon-10569
06/17/2022, 1:08 AMsubnetSpec
?important-australia-792
06/17/2022, 1:09 AMlittle-cartoon-10569
06/17/2022, 1:10 AMimportant-australia-792
06/17/2022, 1:10 AMlittle-cartoon-10569
06/17/2022, 1:11 AMimportant-australia-792
06/17/2022, 1:12 AMlittle-cartoon-10569
06/17/2022, 1:14 AMimportant-australia-792
06/17/2022, 1:17 AMlittle-cartoon-10569
06/17/2022, 1:18 AMnodejs
important-australia-792
06/17/2022, 1:18 AM