Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"CDK deploy" doesn't start

Hi everyone I'm pretty new in AWS CDK and wanted to create a simple app (javaScript) with AWS developer guide : https://docs.aws.amazon.com/cdk/latest/guide/hello_world.html

it seems like everything is work fine but when I'm trying to run "cdk deploy" command the deploy is not even starting and is stack in this stage: enter image description here

does somebody know what I'm doing wrong or how to get the actual error?

like image 793
gil cohen Avatar asked Mar 28 '26 09:03

gil cohen


2 Answers

using -vvv and --debug options will help you identify the potential issues.

like image 63
h8n Avatar answered Mar 29 '26 21:03

h8n


For me, I had to go into my package.json file and remove the bin node. So I changed this...

{
  "name": "cdk",
  "version": "0.1.0",
  "bin": {
    "cdk": "bin/cdk.js"
  },
  "scripts": {
    "build": "tsc && npx cdk synth",
    "watch": "tsc -w",
    "cdk": "cdk"
  },
  "devDependencies": {
    "@types/node": "10.17.27",
    "@types/prettier": "2.6.0",
    "aws-cdk": "2.55.1",
    "ts-node": "^10.9.1",
    "typescript": "~3.9.7"
  },
  "dependencies": {
    "aws-cdk-lib": "2.55.1",
    "constructs": "^10.0.0",
    "source-map-support": "^0.5.21"
  }
}

To this...

{
  "name": "cdk",
  "version": "0.1.0",
  "scripts": {
    "build": "tsc && npx cdk synth",
    "watch": "tsc -w",
    "cdk": "cdk"
  },
  "devDependencies": {
    "@types/node": "10.17.27",
    "@types/prettier": "2.6.0",
    "aws-cdk": "2.55.1",
    "ts-node": "^10.9.1",
    "typescript": "~3.9.7"
  },
  "dependencies": {
    "aws-cdk-lib": "2.55.1",
    "constructs": "^10.0.0",
    "source-map-support": "^0.5.21"
  }
}
like image 29
murribu Avatar answered Mar 29 '26 22:03

murribu