Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gkwa/itsfergus

 
 

Repository files navigation

Lambda Docker API Gateway

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.

Setup

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

Example Output

+ 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]]"
}

Teardown

just teardown
rm -f .env

Dependencies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •