Skip to content

Instantly share code, notes, and snippets.

@dm03514
Last active September 2, 2018 23:45
Show Gist options
  • Save dm03514/8e74991b5c5da5d7056a0d9fce6cf828 to your computer and use it in GitHub Desktop.
Save dm03514/8e74991b5c5da5d7056a0d9fce6cf828 to your computer and use it in GitHub Desktop.
start-service
$ make start-service
make: Warning: File 'Makefile' has modification time 165 s in the future
aws --endpoint-url=http://localhost:4576 sqs delete-queue --queue-url http://localhost:4576/queue/deposits-in || true
An error occurred (AWS.SimpleQueueService.NonExistentQueue) when calling the DeleteQueue operation: AWS.SimpleQueueService.NonExistentQueue; see the SQS docs.
aws --endpoint-url=http://localhost:4576 sqs create-queue --queue-name deposits-in
{
"QueueUrl": "http://localhost:4576/queue/deposits-in"
}
aws --endpoint-url=http://localhost:4576 sqs delete-queue --queue-url http://localhost:4576/queue/deposits-out || true
An error occurred (AWS.SimpleQueueService.NonExistentQueue) when calling the DeleteQueue operation: AWS.SimpleQueueService.NonExistentQueue; see the SQS docs.
aws --endpoint-url=http://localhost:4576 sqs create-queue --queue-name deposits-out
{
"QueueUrl": "http://localhost:4576/queue/deposits-out"
}
AWS_SECRET_ACCESS_KEY=x \
AWS_ACCESS_KEY_ID=x \
AWS_REGION=us-west-2 \
./bin/deposits-service \
--sqs-endpoint-url=http://localhost:4576 \
--db-connection-string="postgresql://root:root@localhost/deposits?sslmode=disable" \
--sqs-output-url=http://localhost:4576/queue/deposits-out
{"db_connection_string":"postgresql://root:root@localhost/deposits?sslmode=disable","level":"info","msg":"initializing","sqs_endpoint_url":"http://localhost:4576","sqs_in_queue_url":"http://localhost:4576/que
ue/deposits-in","sqs_out_queue_url":"http://localhost:4576/queue/deposits-out","time":"2018-09-01T01:26:47Z"}
{"level":"debug","msg":"Entering Receive Message Loop","time":"2018-09-01T01:26:47Z"}
...
{"level":"debug","messages":{"Messages":null},"msg":"receiving_messages","time":"2018-09-01T01:34:19Z"}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment