Hello. I am new to Terraform CDK and ran into the following issue when working through the tutorial Building AWS Infrastructure with Python
% 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
,