I am trying to add javaagent to AWS lambda function. I created a layer and uploaded a zip file which has jar file. When I test the function I get
Error opening zip file or JAR manifest missing : /opt/xxxxx.jar
But I can clearly see inside -rwxrwxrwx 1 root root 1219876 Nov 30 05:30 xxxxx.jar
The only issue i see is it is with root permission. How do i upload so that it has current user permissions ?