#!/bin/bash

bazel build  //src/main/java/net/eagle0/common/name_generation:name_generation_lambda_deploy.jar
aws s3 cp \
    bazel-bin/src/main/java/net/eagle0/common/name_generation/name_generation_lambda_deploy.jar \
    s3://eagle0/lambdas/name_generation_lambda_deploy.jar
aws lambda update-function-code \
    --function-name Name_Generator \
    --s3-bucket eagle0 \
    --s3-key lambdas/name_generation_lambda_deploy.jar
