Can you manage a CDK project with poetry?

Viewed 212

Trying CDK for the first time. While it is possible to use poetry for the function dependencies, I am looking for a way to also manage the CDK project itself using poetry.

Following this guide: https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-python.html the recommendation to set up a project contains these step:

cdk init app --language python
source .venv/bin/activate 
python -m pip install -r requirements.txt

Essentially, I'd like to be able to poetry run cdk init app --language python instead but cdk init requires an empty directory to begin with.

Is there a best practice to put the cdk project entirely under poetry? Otherwise using Typescript for the project and Python for the functions would be my next best option.

0 Answers
Related