Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CDK - how does one debug a hanging deploy?

There are times when I run cdk deploy and it will get to creating a ECS service and just hang because I did "something" wrong with my config --

55/57 Currently in progress: MyServiceFA17513E

Is there any way to get insight into what the problem is? It seems to take quite long to timeout (hour+?)

like image 926
Dylan Avatar asked May 01 '20 00:05

Dylan


People also ask

How do I debug AWS CDK?

This is going to enable a CDK Debugger VSCode debug configuration: Once it's enabled, enable a breakpoint on the line you wish to debug by clicking on the left of the line number: Everything is ready now, you're free to start the debugger by clicking on the green arrow in the debug panel: And voila!

What is bootstrapping in AWS CDK?

Bootstrapping is the process of provisioning resources for the AWS CDK before you can deploy AWS CDK apps into an AWS environment. (An AWS environment is a combination of an AWS account and Region).

How does CDK deploy work?

The cdk deploy subcommand deploys one or more specified stacks to your AWS account. The CDK Toolkit runs your app and synthesizes fresh AWS CloudFormation templates before deploying anything. Therefore, most command line options you can use with cdk synth (for example, --context ) can also be used with cdk deploy .

What does CDK diff do?

cdk diff. Computes differences between the infrastructure specified in the current state of the CDK app and the currently deployed application (or a user-specified CloudFormation template). This command returns non-zero if any differences are found.


1 Answers

You can run your command with the verbose parameter to get more details cdk deploy -vv

like image 174
Melissa Guo Avatar answered Oct 02 '22 13:10

Melissa Guo