Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Run Bash scripts in AWS Lambda via Layers

License

Notifications You must be signed in to change notification settings

kayac/bash-lambda-layer

 
 

Repository files navigation

NO LONGER SUPPORTED

This repository and layer is no longer receiving updates or support. Please use Lambda Conteiner.

Bash in AWS Lambda [Modified by Kayac inc.]

forked gkrizek/bash-lambda-layer because we needed to modify and maintain it in our organization. Respect for the original gkrizek/bash-lambda-layer.

The original gkrizek/bash-lambda-layer is no longer supported on August 20, 2020. Click here for details.

Difference from the original

compatible runtimes

only provided.al2

ARN

for Amazon Linux 2 (provided.al2)

arn:aws:lambda:<region>:513375597510:layer:bash-al2:1

for Amazon Linux 1 (provided)

This is deprecated. It will not be maintained in the future. Please use AL2 for new Lambda functions.

arn:aws:lambda:<region>:513375597510:layer:bash:4

tools version

In kayac/bash-lambda-layer,the following executables.

  • AWS CLI v2.0.30
  • jq 1.6
  • zip 3.0
  • unzip 6.0

function

  • Error handling using jq, for json escape.

How to publish to local AWS account.

Download the release package and do one of the following

publish to All region

$ ./publish.sh

publish to Single region

$AWS_REGION=<target region> ./publish-only.sh

If want additional executable commands...

Let's stack layers Check examples/additional-git-layer for more details.

Only add executables to kayac/bash-lambda-layer if it is often needed by our organization.

About

Run Bash scripts in AWS Lambda via Layers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 79.8%
  • Makefile 19.3%
  • Dockerfile 0.9%