Based on API Gateway's
- HTTP API (not REST API) and
- payload format version
2.0.
The Lambda function has less than 30 seconds to complete because of the HTTP API's maximum integration timeout on synchronous requests.
Secrets
AWS_ACCOUNT_IDAWS_REGIONECR_REPO_NAMELAMBDA_NAMEPROD_CI_ROLE_ARN
Delete all untagged ECR images except the most recent one.
AWS_REGIONECR_REPO_NAMEPROD_CI_ROLE_ARN
Secrets
PROD_BASE_URL
Build an image with
docker build --tag "<REPOSITORY:TAG>" \
--build-arg "JAVA_VERSION=..." \
--build-arg "SBT_VERSION=..." \
--file "./Dockerfile" "."(default JAVA_VERSION and SBT_VERSION values in Dockerfile).
Run the image with
docker run --rm --publish "9000:8080" "<REPOSITORY:TAG>"and test it with
curl --silent \
--request "POST" "http://localhost:9000/2015-03-31/functions/function/invocations" \
--data '{"body":"hello world!","isBase64Encoded":false}' | \
jq --raw-output '.' | jq '.'