Also, you must fully qualify the destination paths (for example, c:tempwebappsConfig and c:tempwebappsmyApp). Do not include the runas element. Here is the sequence of events during deployment: Run the script located at Scripts/UnzipResourceBundle.sh …
https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-example.html