File tree 2 files changed +56
-0
lines changed
2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : " 3.8"
2
+
3
+ services :
4
+ localstack :
5
+ container_name : localstack_main
6
+ image : localstack/localstack
7
+ hostname : localhost.localstack.cloud
8
+ ports :
9
+ - " 127.0.0.1:4566:4566" # LocalStack Gateway
10
+ - " 127.0.0.1:4510-4559:4510-4559" # external services port range
11
+ environment :
12
+ - DOCKER_HOST=unix:///var/run/docker.sock
13
+ - SERVICES=sqs,sns,s3
14
+ - EAGER_SERVICE_LOADING=1
15
+ - SKIP_SSL_CERT_DOWNLOAD=1
16
+ - HOSTNAME_EXTERNAL=localhost.localstack.cloud
17
+ volumes :
18
+ - " /tmp/localstack:/var/lib/localstack"
19
+ - " /var/run/docker.sock:/var/run/docker.sock"
20
+
21
+ setup-resources :
22
+ image : localstack/localstack
23
+ environment :
24
+ - AWS_ACCESS_KEY_ID=test
25
+ - AWS_SECRET_ACCESS_KEY=AWSSECRET
26
+ - AWS_DEFAULT_REGION=eu-west-2
27
+ entrypoint : /bin/sh -c
28
+ command : >
29
+ "
30
+ sleep 15
31
+ alias aws='aws --endpoint-url http://localstack:4566'
32
+ # Executing SNS
33
+ aws sns create-topic --name local_sns
34
+ # Executing SQS
35
+ aws sqs create-queue --queue-name local_queue
36
+ # Subscribing to SNS to SQS
37
+ aws sns subscribe --attributes 'RawMessageDelivery=true' --topic-arn arn:aws:sns:eu-west-2:000000000000:local_sns --protocol sqs --notification-endpoint arn:aws:sqs:eu-west-2:000000000000:local_queue
38
+ aws sqs get-queue-url --queue-name local_queue
39
+ # Create na S3 bucket for large messages
40
+ aws s3 mb s3://large-messages
41
+ "
42
+ depends_on :
43
+ - localstack
Original file line number Diff line number Diff line change
1
+ # SNS with Localstack and pass4s
2
+
3
+ https://github.com/majk-p/pass4s-playground/blob/master/docker-compose.yml
4
+
5
+ https://blog.michalp.net/posts/scala/pass4s-basics/
6
+
7
+ https://blog.michalp.net/posts/scala/pass4s-codecs/
8
+
9
+ https://blog.michalp.net/posts/scala/pass4s-s3-proxy/
10
+
11
+ https://github.com/ocadotechnology/pass4s
12
+
13
+ https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
You can’t perform that action at this time.
0 commit comments