• Stars
    star
    532
  • Rank 83,377 (Top 2 %)
  • Language
    Shell
  • License
    Apache License 2.0
  • Created about 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Lambda shell - Run sh commands inside AWS Lambda environment
This code is referenced in the following articles: Please read these
articles for more information.

  lambdash: AWS Lambda Shell Hack: New And Improved!
  https://alestic.com/2015/06/aws-lambda-shell-2/

  Exploring The AWS Lambda Runtime Environment
  https://alestic.com/2014/11/aws-lambda-environment/ 

The files in this repo include:

  - index.js - AWS Lambda function that runs a provided shell command
    and returns stdout, stderr, and exit code.

  - lambdash - Command line program that invokes the AWS Lambda
    function with a specified shell command and outputs returned
    results.

  - lambdash.template - CloudFormation template that creates the AWS
    Lambda function and the required IAM role.

  - lambdash-install - Script to create the CLoudFormation stack.

  - lambdash-uninstall - Script to delete the CloudFormation stack.

  - lambdash-upload-s3 - Sample of how ZIP file and CloudFormation
    template were uploaded to the run.alestic.com S3 bucket
    (hardcoded names)

Note: This code is a simple hack, demonstrating a way to gain
visibility into the AWS Lambda environment. This is not intended to be
production quality software.

More Repositories

1

ec2-consistent-snapshot

[SUNSET] Initiate consistent EBS snapshots in Amazon EC2
Perl
442
star
2

aws-git-backed-static-website

Git-backed Static Website powered entirely by AWS CloudFormation stack
Python
302
star
3

ec2-expire-snapshots

Delete expired EBS snapshots in Amazon EC2. Install on Ubuntu with: sudo add-apt-repository -y ppa:alestic && sudo apt-get update && sudo apt-get install -y ec2-expire-snapshots
Perl
108
star
4

aws-cli-multi-account-sessions

bash functions to help run aws-cli commands across roles in multiple accounts with MFA
Shell
68
star
5

aws-cloudformation-stack-status

Clean display of single most recent event status for each resource in a CloudFormation stack
Shell
68
star
6

timercheck

TimerCheck.io
Python
67
star
7

alestic-unreliable-town-clock

Alestic Unreliable Town Clock (UTC)
Python
67
star
8

alestic-git

Run a private, centralized Git server with gitolite and Ubuntu on Amazon EC2
Shell
62
star
9

lambda-function-wrapper

AWS Lambda nodejs wrapper for writing Lambda functions in other programming languages
JavaScript
49
star
10

lambda-echo

AWS Lambda function that outputs the input event to the console (CloudWatch Logs). Useful for debugging
Shell
30
star
11

aws-lambda-codepipeline-site-generator-hugo

Static site generator plugin for AWS Git-backed static website stack: Hugo
Python
28
star
12

aws-route53-wipe-hosted-zone

Delete an Amazon Route 53 Hosted Zone with all contained Record Sets
Shell
28
star
13

ringspeak

Ring a phone number (Twilio) and speak some text (Amazon Polly)
Shell
23
star
14

demo-ec2-schedule-instance

Demo code for article: Automate EC2 Instance Setup with user-data Scripts
8
star
15

aws-sns-delayed

Schedule or delay message publication on an AWS SNS topic using a simple Step Functions state machine
7
star
16

aws-lambda-codepipeline-site-generator-subdirectory

Static site generator plugin for AWS Git-backed static website stack: Subdirectory
Python
5
star
17

aws-lambda-codepipeline-site-generator-identity

Static site generator plugin for AWS Git-backed static website stack: Identity transformation
Python
5
star
18

alestic-email-relay-dash-to-plus

Companion to article on Alestic.com "Using An AWS CloudFormation Stack To Allow Dash Instead Of Plus In Gmail Email Addresses"
Shell
3
star
19

alestic-hardy-ebs

Alestic Ubuntu 8.04 Hardy EBS boot AMIs
Shell
3
star
20

Crypt-Skip32

32-bit block cipher based on Skipjack
Perl
3
star
21

aws-lambda-codepipeline-site-generator-npm

Static site generator plugin for AWS Git-backed static website stack: npm
Python
2
star
22

abc

AI bash/zsh/tcsh Command - Generate shell command(s) from natural language description using LLM (generative AI) and inject into the next prompt
Python
2
star
23

email-bloom

Use Bloom Filter to compare email lists anonymously between two parties
Python
1
star
24

aws-domain-redirect

Redirect all requests from one domain to another using AWS Lambda@Edge in CloudFront [IN DEVELOPMENT]
JavaScript
1
star