gray-airplane-38353
07/19/2024, 11:17 PMimport * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx/classic";
Which (at the moment), I am at (package.json
):
"@pulumi/aws": "^6.31.1",
"@pulumi/awsx": "^1.0.6",
Prior to this I was pre-v1.x for @pulumi/awsx
.
These lines of code used to work:
const vpc = aws.ec2.Vpc.get("default", outputs.vpcId);
const vpcx = new awsx.ec2.Vpc("default", { vpc: vpc });
But now, I get this at build/deploy time:
TSError: ⨯ Unable to compile TypeScript:
index.ts(90,46): error TS2739: Type 'Vpc' is missing the following properties from type 'Vpc': enableClassiclink, enableClassiclinkDnsSupport
I'm no TypeScript expert (and that's part of the problem!), but this is a codebase I inherited...little-cartoon-10569
07/20/2024, 7:55 PMgray-airplane-38353
07/20/2024, 7:57 PMlittle-cartoon-10569
07/20/2024, 7:59 PMlittle-cartoon-10569
07/20/2024, 8:00 PMlittle-cartoon-10569
07/20/2024, 8:01 PMlittle-cartoon-10569
07/20/2024, 8:03 PMgray-airplane-38353
07/20/2024, 9:24 PM@pulumi/aws
package until I find a version that works with the 1.x.y
version of @pulumi/awsx
?
I would be quite happy to update both the the latest, but I am trying to figure out what code changes I need to make with those VPC lines of code I referenced.gray-airplane-38353
07/20/2024, 9:26 PMlittle-cartoon-10569
07/20/2024, 11:26 PMfuture-hairdresser-70637
07/21/2024, 12:39 PMawsx
v2 - from the release notes - "VPC.EnableClassicLink was removed upstream because EC2 Classic is retired.". EC2 Classic is gone now.