# sr-add-version

The purpose of this function is to compile a sound recording and save a new version if changes have been made.

## Additional Setup

### AWS S3

* Using the default `docker-compose.yaml` setup, credentials will be copied into the function container from `~/.aws/credentials` on your host machine and the environment variable `AWS_PROFILE=dev` will be set
* Sound recording versions by default are saved to `arn:aws:s3:::test-orcd-bucket/sound_recording_versions/`

### Optional Dev Sentry DSN

If you have a dev Sentry DSN to use (using either a catch-all DSN or by setting up a dev DSN for this lambda), you can:

* `cp .env.shadow .env`
* Fill in the DSN in `.env`
* The SENTRY_DSN env var in `docker-compose.yaml` will then pick this up

If you don't fill out the environment variable, docker-compose will warn you, but it is not required.
