-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
My steps:
npx create-nx-workspace@latest 'name'
cd 'name'
npm i @otterdev/nx-cdk
npx nx g @otterdev/nx-cdk:app cdk-project
npx nx run cdk-project:bootstrap
npm i aws-cdk-lib //success
./apps/cdk-project/lib/cdk-project-stack.ts
import * as lambda from 'aws-cdk-lib/aws-lambda';
export class CdkProjectStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const echoLambda = new lambda.Function(this, "echoFunction", {
code: lambda.Code.fromInline(
"exports.handler = (event, context) => { console.log(event); context.succeed(event); }"
),
handler: "index.handler",
runtime: lambda.Runtime.NODEJS_14_X
});
}
}
npx nx run cdk-project:synth //fail

If possible, please tell me what could be the reason
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels