# Deployment issue when implement CDK AWS Example using Python

**URL:** <https://discuss.hashicorp.com/t/deployment-issue-when-implement-cdk-aws-example-using-python/33559>\
**Category:** CDK for Terraform\
**Created:** [December 23, 2021, 9:01pm UTC](https://discuss.hashicorp.com/t/deployment-issue-when-implement-cdk-aws-example-using-python/33559 "2021-12-23T21:01:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyp0717](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/kyp0717/32/14669_2.png) [@kyp0717](https://discuss.hashicorp.com/u/kyp0717)\
**Post date:** [December 23, 2021, 9:01pm UTC](https://discuss.hashicorp.com/t/deployment-issue-when-implement-cdk-aws-example-using-python/33559/1 "2021-12-23T21:01:31Z")

</div>

Hello. I am new to Terraform CDK and ran into the following issue when working through the tutorial `Building AWS Infrastructure with Python`

```auto
% cdktf deploy
⠧ synthesizing...
[2021-12-23T15:58:24.417] [ERROR] default - Traceback (most recent call last):
  File "/home/phage/projects/infra-as-code/learn-cdktf-aws/main.py", line 5, in <module>

[2021-12-23T15:58:24.418] [ERROR] default - from imports.aws import AwsProvider, Instance
ImportError: cannot import name 'Instance' from 'imports.aws' (/home/phage/projects/infra-as-code/learn-cdktf-aws/imports/aws/ __init__.py)
cdktf encountered an error while synthesizing

Synth command: pipenv run python main.py
Error: non-zero exit code 1

Command output on stderr:

    Traceback (most recent call last):
      File "/home/phage/projects/infra-as-code/learn-cdktf-aws/main.py", line 5, in <module>
        from imports.aws import AwsProvider, Instance
    ImportError: cannot import name 'Instance' from 'imports.aws' (/home/phage/projects/infra-as-code/learn-cdktf-aws/imports/aws/ __init__.py)

⠏ synthesizing...

```

I have already run `cdktf get` prior to `cdktf deploy` ,

---

<div class="post-metadata">

**Author:** ![DanielMSchmidt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/danielmschmidt/32/19126_2.png) [@DanielMSchmidt](https://discuss.hashicorp.com/u/DanielMSchmidt)\
**Post date:** [March 17, 2023, 8:14am UTC](https://discuss.hashicorp.com/t/deployment-issue-when-implement-cdk-aws-example-using-python/33559/2 "2023-03-17T08:14:12Z")

</div>

Please take a look at the updated example, we fixed the import paths to match cdktf \>= 0.13: [Build AWS Infrastructure with CDK for Terraform | Terraform | HashiCorp Developer](https://developer.hashicorp.com/terraform/tutorials/cdktf/cdktf-build)

We improved the overall performance in [0.13](https://cdk.tf/0.13) and needed to change the imports to achieve this.
