Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS command throwing RUNTIME EXCEPTION #70

Open
Gayatri31 opened this issue Aug 17, 2020 · 2 comments
Open

AWS command throwing RUNTIME EXCEPTION #70

Gayatri31 opened this issue Aug 17, 2020 · 2 comments

Comments

@Gayatri31
Copy link

here is the Error:

Response:
{
  "errorMessage": "Exited with code 126",
  "errorType": "RuntimeErrorException",
  "stackTrace": "/var/task/hello.sh: /opt/bin/aws: /usr/bin/python3: bad interpreter: No such file or directory"
}

Request ID:
"2af276fe-d3f6-48e2-b4b6-3ae3fc8eb6ad"

Function logs:
START RequestId: 2af276fe-d3f6-48e2-b4b6-3ae3fc8eb6ad Version: $LATEST
hello

Code:

function handler () {
   
    set -e
    echo 'hello'
    EVENT_DATA=$1
    echo $EVENT_DATA
    aws s3 ls $(echo $EVENT_DATA | jq ."bucket")
}

Please Suggest me what are the steps to resolve this

@andrei-ka
Copy link

andrei-ka commented Dec 7, 2020

i had the same one 'cuz i tried ami2 custom runtime, use ami1 one... and i've deleted "RUNTIME_PATH="2018-06-01/runtime" from the longer "bootstrap" example...

@uzzer
Copy link

uzzer commented Sep 7, 2021

That might be added to README, is it worth preparing PR if it helps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants