I failed deploy when groovy script executed an event hook.
The message is:
Error Code
ScriptFailed
Script Name
uploadLogsToS3.sh
Message
Script at specified location: uploadLogsToS3.sh run as user root failed with exit code 127
Log Tail
LifecycleEvent - AfterInstall
Script - uploadLogsToS3.sh
[stderr]/usr/bin/env: groovy: No such file or directory
uploadLogsToS3.sh
is a groovy shell script. I installed groovy as SDKMan. What is this solution to this problem?
I solved this problem as below.