# Non-zero exit code 1

**URL:** <https://discuss.hashicorp.com/t/non-zero-exit-code-1/35285>\
**Category:** CDK for Terraform\
**Created:** [February 5, 2022, 6:17am UTC](https://discuss.hashicorp.com/t/non-zero-exit-code-1/35285 "2022-02-05T06:17:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![d4nyll](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/d4nyll/32/11031_2.png) [@d4nyll](https://discuss.hashicorp.com/u/d4nyll)\
**Post date:** [February 5, 2022, 6:17am UTC](https://discuss.hashicorp.com/t/non-zero-exit-code-1/35285/1 "2022-02-05T06:17:59Z")

</div>

When I run `cdktf deploy <stack>` and type `yes` and `<RETURN>`, the CLI tool will create a lock file, run for maybe a few seconds, show some progress, the lock file will be deleted, and exit with the message `non-zero exit code 1`

```auto
Summary: 0 created, 0 updated, 0 destroyed.non-zero exit code 1

```

Can CDKTF provide more information about why it exited?

---

<div class="post-metadata">

**Author:** ![shohei](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/shohei/32/25389_2.png) [@shohei](https://discuss.hashicorp.com/u/shohei)\
**Post date:** [February 7, 2022, 5:52am UTC](https://discuss.hashicorp.com/t/non-zero-exit-code-1/35285/2 "2022-02-07T05:52:13Z")

</div>

You can set `CDKTF_LOG_LEVEL` env variable. E.g., `CDKTF_LOG_LEVEL=debug dktf deploy ...`

---

<div class="post-metadata">

**Author:** ![d4nyll](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/d4nyll/32/11031_2.png) [@d4nyll](https://discuss.hashicorp.com/u/d4nyll)\
**Post date:** [February 7, 2022, 7:23am UTC](https://discuss.hashicorp.com/t/non-zero-exit-code-1/35285/3 "2022-02-07T07:23:20Z")

</div>

Thanks @shohei that gave me much more information.
