probably this should be just aws node api boilerplate but i CBA