apex-shell

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2016 License: MIT Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Apex Shell

The apex-shell(1) command allows you to execute commands in an AWS Lambda function via an interactive shell.

Installation

Grab a binary release, or install via go-get:

$ go get github.com/apex/apex-shell

About

Why on earth would you want to do this? Running arbitrary commands in AWS Lambda allows you to do things such as verify that AWS roles have adequate permissions to interact with other resources, inspecting what environment variables are presented by AWS, or simply taking a peek at the file structure of a Lambda container.

Usage

First thing to note is that apex-shell(1) requires that you run it in an Apex project directory, aka one with a ./project.json. This is because apex-shell(1) currently utilizes many Apex features and configuration information to do its thing.

You should have your AWS profile set via export AWS_PROFILE=name, unless the "default" profile is to be used. Then execute:

$ apex-shell

You should see the following prompt, after which all commands are executing in an AWS Lambda container.

AWS Lambda shell

Use ^C or ^D to shut down the shell and remove the function.

Badges


tjholowaychuk.com  ·  GitHub @tj  ·  Twitter @tjholowaychuk

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL