From 03997a2810946cd2533c451418744cdb96be67c0 Mon Sep 17 00:00:00 2001 From: Oliver Becker Date: Fri, 16 Feb 2024 13:43:10 +0100 Subject: [PATCH] :hammer: Add script for deleting old lambda function versions --- backend/scripts/cleanup-lambda.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 backend/scripts/cleanup-lambda.sh diff --git a/backend/scripts/cleanup-lambda.sh b/backend/scripts/cleanup-lambda.sh new file mode 100755 index 0000000..8682642 --- /dev/null +++ b/backend/scripts/cleanup-lambda.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +# see https://github.com/karl-cardenas-coding/go-lambda-cleanup +docker run -e AWS_ACCESS_KEY_ID="$(aws configure get aws_access_key_id)" -e AWS_SECRET_ACCESS_KEY="$(aws configure get aws_secret_access_key)" ghcr.io/karl-cardenas-coding/go-lambda-cleanup:2.0.12 clean -r "$(aws configure get region)"