Skip to content

AWS command throwing RUNTIME EXCEPTION #70

Open
@Gayatri31

Description

@Gayatri31

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions