Sha256: eabf815b51c4769de8583e88b1ddb538754f314498d01bdca7529501c485e9fe

Contents?: true

Size: 939 Bytes

Versions: 4

Compression:

Stored size: 939 Bytes

Contents

Execute commands on AWS Lambda environment.

## REPL

When no command is provided a REPL is started.

    ❯ jets exec
    > pwd
    /var/task
    > whoami
    sbx_user1051
    > echo $AWS_REGION
    us-west-2
    > env | sort

More examples:

    ❯ jets exec
    > env | sort
    > cat /etc/os-release
    > du -sh * | sort -sh

## Execute Commands

    ❯ jets exec uname -a
    Linux ... GNU/Linux

## Status and Result

You can see the status and result of the last command executed on AWS Lambda. Example:

    ❯ jets exec
    > whoami
    sbx_user1051
    > status
    Last command had a status of success (0).
    > result
    Last result:
    {
      "stdout": "sbx_user1051\n",
      "stderr": "",
      "status": 0
    }
    > echo "This is an error message" >&2
    This is an error message
    > result
    Last result:
    {
      "stdout": "",
      "stderr": "This is an error message\n",
      "status": 0
    }
    >

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jets-6.0.5 lib/jets/cli/help/exec.md
jets-6.0.4 lib/jets/cli/help/exec.md
jets-6.0.3 lib/jets/cli/help/exec.md
jets-6.0.2 lib/jets/cli/help/exec.md