Skip to content

When AWS released Custom Runtimes, some nice person [1] created a Lambda Layer to run Bash. I had been waiting for this day since Bash is my preferred language.

License

Notifications You must be signed in to change notification settings

dubrowin/Bash2-Lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

When AWS released Custom Runtimes, some nice person [1] created a Lambda Layer to run Bash. I had been waiting for this day since Bash is my preferred language. I started to automate and move all my home based scripts to Lambda. When AWS announced they were moving Lambda to Amazon Linux 2, the layer no longer functioned. I reached out to gkrizek, but he was not going to update, so I created a new Lambda Layer that would allow me to continue to work.

All the requirements and issues that were in gkrizek's version still apply, check that out for the details.

To use the Layer, you'll need to download it [2] and then upload to the AWS Region you want to use it in the Lambda console to Layers. When you create your Function, Select Runtime of: Provide your own bootsrap on Amazon Linux 2 I find that the Bash Lambdas run best when they have at least 512MB RAM.

In addition, if you need to run any AWS CLI commands, you will need these variables set properly:

export PYTHONPATH="/opt/lib/:/opt/lib/python/:/opt/lib/awscli/:/opt/lib/python/lib-dynload"
export PYTHONHOME="/opt/"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/lib/python/lib-dynload"

It seems that the Layer is too big for GitHub to allow me to upload natively. So for now, I've placed it on Dropbox [2].

[1] https://github.com/gkrizek/bash-lambda-layer [2] https://www.dropbox.com/s/63uewwto959kzco/Bash2.zip

About

When AWS released Custom Runtimes, some nice person [1] created a Lambda Layer to run Bash. I had been waiting for this day since Bash is my preferred language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published