# distro-4648-interm-sr-delivery

:warning: _There is a problem where the exception `botocore.exceptions.ConnectionClosedError` is thrown when a long running lambda function completes. This only appears to be occuring inside of a container. Tried setting system tcp keepalive and other settings, but no luck. Putting this work in temporary directory until this can be tested / fixed with newer packages._

This script serves as an intermediate solution to re-compile sound recordings and deliver them to facebook. The input is a file on S3 that contains product UPCs.

### Setup

In `docker-compose.yaml`...
1. Set `ENVIRONMENT` to `dev`, `qa`, or `prod`
	* :warning: `dev` does not have fully setup lambda and step functions
1. Set `AWS_PROFILE` to the one you wish to use.
	* :bulb: aws credentials in `~/.aws` are automatically mounted


### Execute

Each execution will select the oldest unprocessed file and process it.

```
$ docker-compose up --build script
```