Dash exchange rates service using Serverless framework
sls deploy
Requires a running Redis instance. Needs to be accessible via REDIS_URL
environment variable.
Test it locally using a local Redis instance:
docker run -p 127.0.0.1:6379:6379 -d redis:alpine
sls invoke local --function fetch --env REDIS_URL=host.docker.internal:6379
sls invoke local --function serve --env REDIS_URL=host.docker.internal:6379
Deployment-specific config items should be placed in a config.STAGE.yaml
file, where STAGE is the deployment stage used (defaults to dev
). This
includes VPC security groups and subnet IDs, custom domain for the API Gateway
and the URL for the Redis instance.
Feel free to copy the config.example.yaml
file and modify the values therein.
Feel free to dive in! Open an issue or submit PRs.