-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Hi,
Being at the first step of the workshop, when launching following command: npx [email protected] bootstrap
Got the following error messages:
⨯ Unable to compile TypeScript:
lib/wordpress-lab-stack.ts:79:36 - error TS2339: Property 'ClusterParameterGroup' does not exist on type 'typeof import("/home/ec2-user/environment/ecommerce-shopfront-on-aws/wordpress-lab/node_modules/@aws-cdk/aws-rds/lib/index")'.
79 const dbClusterParam = new rds.ClusterParameterGroup(this, 'replica-param-aurora', {
~~~~~~~~~~~~~~~~~~~~~
lib/wordpress-lab-stack.ts:98:9 - error TS2322: Type '{ instanceType: InstanceType; securityGroup: SecurityGroup; vpcSubnets: { subnetType: SubnetType; }; vpc: Vpc; }' is not assignable to type 'InstanceProps'.
Object literal may only specify known properties, but 'securityGroup' does not exist in type 'InstanceProps'. Did you mean to write 'securityGroups'?
98 securityGroup: dbsecuritygroup,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@aws-cdk/aws-rds/lib/cluster.d.ts:41:14
41 readonly instanceProps: InstanceProps;
~~~~~~~~~~~~~
The expected type comes from property 'instanceProps' which is declared here on type 'DatabaseClusterProps'
lib/wordpress-lab-stack.ts:193:7 - error TS2322: Type '{ service: string; action: string; parameters: { taskDefinition: string; cluster: string; count: number; launchType: string; networkConfiguration: { awsvpcConfiguration: { subnets: string[]; assignPublicIp: string; }; }; }; physicalResourceId: string; }' is not assignable to type 'AwsSdkCall'.
Types of property 'physicalResourceId' are incompatible.
Type 'string' is not assignable to type 'PhysicalResourceId | undefined'.
193 onCreate: {
~~~~~~~~
node_modules/@aws-cdk/custom-resources/lib/aws-custom-resource/aws-custom-resource.d.ts:224:14
224 readonly onCreate?: AwsSdkCall;
~~~~~~~~
The expected type comes from property 'onCreate' which is declared here on type 'AwsCustomResourceProps'
**************************************************
*** Newer version of CDK is available [1.97.0] ***
*** Upgrade recommended ***
**************************************************
Subprocess exited with error 1
But the AWS cloudformation stacks was created.
So is this errors normal?
Pretty same error was raised when running second commande: npx [email protected] deploy hostedZone
Please help!
Metadata
Metadata
Assignees
Labels
No labels