diff --git a/packages/amplify-category-custom/resources/cdk-stack.ts.sample b/packages/amplify-category-custom/resources/cdk-stack.ts.sample index ed8b160df3c..72a8abcc880 100644 --- a/packages/amplify-category-custom/resources/cdk-stack.ts.sample +++ b/packages/amplify-category-custom/resources/cdk-stack.ts.sample @@ -1,13 +1,14 @@ import * as cdk from 'aws-cdk-lib'; import * as AmplifyHelpers from '@aws-amplify/cli-extensibility-helper'; import { AmplifyDependentResourcesAttributes } from '../../types/amplify-dependent-resources-ref'; +import { Construct } from 'constructs'; //import * as iam from 'aws-cdk-lib/aws-iam'; //import * as sns from 'aws-cdk-lib/aws-sns'; //import * as subs from 'aws-cdk-lib/aws-sns-subscriptions'; //import * as sqs from 'aws-cdk-lib/aws-sqs'; export class cdkStack extends cdk.Stack { - constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps, amplifyResourceProps?: AmplifyHelpers.AmplifyResourceProps) { + constructor(scope: Construct, id: string, props?: cdk.StackProps, amplifyResourceProps?: AmplifyHelpers.AmplifyResourceProps) { super(scope, id, props); /* Do not remove - Amplify CLI automatically injects the current deployment environment in this input parameter */ new cdk.CfnParameter(this, 'env', { diff --git a/packages/amplify-e2e-tests/custom-resources/custom-cdk-stack.ts b/packages/amplify-e2e-tests/custom-resources/custom-cdk-stack.ts index dfba8f4829e..4c457e9bdcc 100644 --- a/packages/amplify-e2e-tests/custom-resources/custom-cdk-stack.ts +++ b/packages/amplify-e2e-tests/custom-resources/custom-cdk-stack.ts @@ -3,13 +3,14 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as sns from 'aws-cdk-lib/aws-sns'; import * as subs from 'aws-cdk-lib/aws-sns-subscriptions'; import * as sqs from 'aws-cdk-lib/aws-sqs'; +import { Construct } from 'constructs'; /** * Base amplify stack class */ // eslint-disable-next-line @typescript-eslint/naming-convention export class cdkStack extends cdk.Stack { - constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { + constructor(scope: Construct, id: string, props?: cdk.StackProps) { super(scope, id, props); /* Do not remove - Amplify CLI automatically injects the current deployment environment in this input parameter */ diff --git a/packages/amplify-e2e-tests/package.json b/packages/amplify-e2e-tests/package.json index bc77d8e3cfa..0bb8e4d34d1 100644 --- a/packages/amplify-e2e-tests/package.json +++ b/packages/amplify-e2e-tests/package.json @@ -33,6 +33,7 @@ "aws-appsync": "^4.1.1", "aws-sdk": "^2.1233.0", "circleci-api": "^4.1.4", + "constructs": "^10.0.5", "dotenv": "^8.2.0", "esm": "^3.2.25", "execa": "^5.1.1",