aws-samples / aws-stepfunctions-examples

AWS Step Functions is an orchestration service for reliably executing multi-step processes using visual workflows. This repository includes detailed examples that will help you unlock the power of serverless workflow.
MIT No Attribution
221 stars 78 forks source link

Build error for genai-prompt-chaining-hitl usecase #65

Open brnkrygs opened 7 months ago

brnkrygs commented 7 months ago

Hello, thank you for your work on these examples!

I'm trying to deploy the genai-prompt-chaining-hitl usecase to one of my AWS accounts. When I follow the steps in the README, I get the following error:

➜  cdk (main) ✔ cdk deploy --all                                                                
Traceback (most recent call last):
  File "/...path-to-clone.../aws-stepfunctions-examples/usecases/genai-prompt-chaining-hitl/stack/cdk/app.py", line 5, in <module>
    import aws_cdk as cdk
ModuleNotFoundError: No module named 'aws_cdk'

Subprocess exited with error 1

It it possible I need to install/manage some prerequisite libraries before being able to deploy? If so, could you specify which ones and how I can best set them up? Thanks!

brnkrygs commented 7 months ago

Played with this some more... looks like if I create a python venv and install against requirements.txt, I can get CDK to synth/deploy:

cd ../..
python3 -m venv .venv
source .venv/bin/activate
cd stack/cdk
pip3 install -r requirements.txt