Skip to content

Instantly share code, notes, and snippets.

@aaalexlit
aaalexlit / create-infra.sh
Last active November 29, 2023 12:33
Create a Lambda function with an ML model and expose it to the internet through AWS API Gateway. After finishing, clean it up running ./delete-infra.sh
# Check if the number of arguments is correct
if [ "$#" -ne 1 ]; then
echo "Usage: $0 local_image_name"
exit 1
fi
# Assign the argument to a variable
LOCAL_IMAGE_NAME=$1