# ows-ddex-lambda-proxy

This microservice is used to call lambdas in AWS land (specifically from `ows-metadata`).

### Origin story
The reason why this microservice exists is because trying to call a lambda in `ows-metadata` didn't work asynchronously and upgrading the aws library would have caused a lot of dependency issues.

### But then why not API gateway you say?
At the time of this writing API Gateway usage was not standardized across the org and we were dependent on systems/devops working on supporting private endpoints.

### How to run locally
Ensure you have fresh credentials for `aws-dev` using the jcarrion script from `collab` repo.

In the ddex_lambda_proxy/config.py file, ensure you have the correct lambda name set for
`DDEX_RDR_LAMBDA_NAME`

Check the `handlers.py` to see what endpoints are available.

Then all you have to do is run `python dev.py` and that should be it for getting it running.
