aws-samples / aws-sam-terraform-examples

MIT No Attribution
45 stars 14 forks source link

Issues with pip dependency with this example #1

Closed ANicolucciTreeOfLife closed 1 year ago

ANicolucciTreeOfLife commented 1 year ago

I'm trying to go use this example in order to deploy my lambda functions using terraform with their python library dependencies.

However, when following this example, I hit this error.

_null_resource.build_lambdafunction (local-exec): pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling

Is there a step that needs to be done to insure terraform has pip installed when it is deploying to aws? If so, where would this go in your examples?

ANicolucciTreeOfLife commented 1 year ago

after thinking this over a bit more....I think this can be resolved by just installing pip locally in your virtual environment or add pip install to github action.

ElijahLynn commented 1 year ago

Yeah, I hit an error with pip missing too, had to apt install python3-pip on my local for testing this out. Should be mentioned in the docs.