aws-samples / aws-lambda-java-workshop

This project contains the code for the Java on AWS Lambda workshop
MIT No Attribution
53 stars 29 forks source link

Initial Infrastructure setup doesn't work on a Windows machine #272

Open jeastham1993 opened 1 year ago

jeastham1993 commented 1 year ago

Running the infrastructure-setup.sh doesn't work on a Windows machine. The issue is with the cdk.json file and how the app is specified. Currently, it is set to:

./mvnw -e -q compile exec:java

This fails on Windows due to the forward slash.

If I run a brand new cdk init app --language=java on a Windows machine the cdk.json file is set to:

mvn -e -q compile exec:java

Propose updating the default to support Windows, Mac and Linux.

jeastham1993 commented 1 year ago

Going through the rest of the workshop, none of the commands starting with ./mvnw work on a Windows machine.

deki commented 1 year ago

Currently the workshop is supposed to run within AWS Cloud9 only. But as I'm a Windows user as well, it's definitely an improvement to work on...

jandykiger commented 10 months ago

I found that if I only changed labs/unicorn-store/infrastructure/cdk/cdk.json line 2 - it would work just fine on my Windows machine. "app": "mvn -e -q compile exec:java",