gil cohen
gil cohen

Reputation: 343

"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?

Upvotes: 3

Views: 7125

Answers (2)

murribu
murribu

Reputation: 129

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"
  }
}

Upvotes: 1

Eisa Qasemi
Eisa Qasemi

Reputation: 826

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

Upvotes: 7

Related Questions