cds-snc / url-shortener

An API written in Python that shortens URLs
MIT License
4 stars 1 forks source link

fix: retrieve API secrets in one API call #397

Closed patheard closed 1 year ago

patheard commented 1 year ago

Summary

Update how the API's SSM ParameterStore params are retrieved to use a single API call. Also adds a check to cause the entry.sh to fail if secrets are not retrieved. Since this will block the start of the lambda function code, it should cause the broken function to be discarded and replaced.

This change is being made to try to avoid scenarios we have seen where a lambda function gets initialized missing some of its secrets.

Related