Create an AWS Lambda function in docker container with API Gateway and IAM authorization.
The Lambda function generates and returns random matrix using NumPy as a dummy example.
just # show default rules
time just setup 2>&1 | tee log.txt
python3 redact.py log.txt >log_redacted.txt
just curl-test
just logs # check cloudwatch logs+ python apitest.py
{
"message": "Matrix generated successfully",
"matrix": [
[0.1882, 0.9042],
[0.4426, 0.1145]
],
"matrix_string": "[[0.19, 0.9 ],\n [0.44, 0.11]]"
}just teardown
rm -f .env