Skip to content

Instantly share code, notes, and snippets.

@RaphaMiranda
RaphaMiranda / export-lambda-local.sh
Created November 11, 2022 19:04
Script Shell for download matching lambda functions from aws to local machine. This script can run on git-bash terminal on windows
#!/usr/bin/env bash
#You need to have aws-cli installed and configured
#Credits to Reddit user u/aa93 for the suggestions
mkdir -p code
aws lambda list-functions | \
grep FunctionName | \
#Select only matching prefix functions
#grep <prefix> | \
cut -d '"' -f4 | \