![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
lambda-console-cli
Advanced tools
A CLI to run shell commands or interact with your application on Lambda.
☁️🐚 A CLI to run shell commands or interact with your application on Lambda. This includes typical shell commands like cat /etc/os-release
or language-specific interactions directly with your running application like Ruby's IRB prompt or Rails console.
The Lambda Console is language agnostic and its event specification can be implemented in any language. See our list of supporting implementation for details.
npm install -g lambda-console-cli
Assuming your language or application framework has a supporting implementation and that you have an AWS CLI user or profile configured with the required permissions, simply invoke lambda-console-cli
binary.
As seen in the screenshot above, it will present a series of interactive prompts to configure the AWS SDKs needed to invoke your Lambda function with the console event specification. All interactive prompts have CLI options.
> lambda-console-cli --help
Usage: lambda-console [options]
A CLI to run shell commands or interact with your application on Lambda.
Options:
-v, --version Output the current version
-r, --region <string> AWS Region name
-p, --profile <string> AWS Profile name
-f, --function-name <string> AWS Lambda Function Name
-h, --help display help for command
Have you created a language-specific package or implemented the Lambda Console specification in your framework? Open an GitHub issue and share your project with us. We will add it to this list below.
Please see Lambda Console (Ruby) for a full reference implementation of the Lambda Console spec in Ruby.
The event structure for Lambda Console language specific implementation must conform to the following JSON schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"X_LAMBDA_CONSOLE": {
"type": "object",
"oneOf": [
{
"properties": {
"run": {
"type": "string"
}
},
"required": ["run"],
"additionalProperties": false
},
{
"properties": {
"interact": {
"type": "string"
}
},
"required": ["interact"],
"additionalProperties": false
}
]
}
},
"required": ["X_LAMBDA_CONSOLE"]
}
More succinctly, one of the two examples are acceptable event types.
Run Commands: For running shell commands.
{ "X_LAMBDA_CONSOLE": { "run": "cat /etc/os-release" } }
Interact Commands: Interact in the context of your program. Like IRB for Ruby.
{ "X_LAMBDA_CONSOLE": { "interact": "User.find(1)" } }
These rules apply to any implementation Lambda response for the Lambda Console to work properly.
Run Commands
statusCode
: Either 0
if no error or 1
if an error occurred.body
: Combined string of standard out and error in the order they happened.Interact Commands
statusCode
: Either 200
if no error or 422
if an error occurred.body
: String response of the expression evaluated by your program.The user running this CLI will need the following IAM actions associated with their user or role:
lambda:ListFunctions
lambda:InvokeFunction
Bug reports and pull requests are welcome on GitHub at https://github.com/rails-lambda/lambda-console. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Lambda Console project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
1.0.8
FAQs
A CLI to run shell commands or interact with your application on Lambda.
The npm package lambda-console-cli receives a total of 0 weekly downloads. As such, lambda-console-cli popularity was classified as not popular.
We found that lambda-console-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.