shared-sqs: Этап 1 — клон GoAWS, удаление SNS, go build OK
This commit is contained in:
Executable
+66
@@ -0,0 +1,66 @@
|
||||
Local: # Environment name that can be passed on the command line
|
||||
# (i.e.: ./goaws [Local | Dev] -- defaults to 'Local')
|
||||
Host: goaws.com # hostname of the goaws system (for docker-compose this is the tag name of the container)
|
||||
# you can now use either 1 port for both sns and sqs or alternatively you can comment out Port and use SqsPort + SnsPort for compatibilyt with
|
||||
# yopa and (fage-sns + face-sqs). If both ways are in the config file on the one "Port" will be used by GoAws
|
||||
Port: 4100 # port to listen on.
|
||||
# SqsPort: 9324 # alterante Sqs Port
|
||||
# SnsPort: 9292 # alternate Sns Port
|
||||
Region: us-east-1
|
||||
AccountId: "100010001000"
|
||||
LogToFile: false # Log messages (true/false)
|
||||
LogFile: .st/goaws_messages.log # Log filename (for message logging
|
||||
EnableDuplicates: false # Enable or not deduplication based on messageDeduplicationId
|
||||
QueueAttributeDefaults: # default attributes for all queues
|
||||
VisibilityTimeout: 30 # message visibility timeout
|
||||
ReceiveMessageWaitTimeSeconds: 0 # receive message max wait time
|
||||
MaximumMessageSize: 262144 # maximum message size (bytes)
|
||||
# MessageRetentionPeriod: 445600 # time period to retain messages (seconds) NOTE: Functionality not implemented
|
||||
Queues: # List of queues to create at startup
|
||||
- Name: local-queue1 # Queue name
|
||||
- Name: local-queue2 # Queue name
|
||||
ReceiveMessageWaitTimeSeconds: 20 # Queue receive message max wait time
|
||||
- Name: local-queue3 # Queue name
|
||||
RedrivePolicy: '{"maxReceiveCount": 100, "deadLetterTargetArn":"arn:aws:sqs:us-east-1:100010001000:local-queue3-dlq"}'
|
||||
- Name: local-queue3-dlq # Queue name
|
||||
Topics: # List of topic to create at startup
|
||||
- Name: local-topic1 # Topic name - with some Subscriptions
|
||||
Subscriptions: # List of Subscriptions to create for this topic (queues will be created as required)
|
||||
- QueueName: local-queue3 # Queue name
|
||||
Raw: false # Raw message delivery (true/false)
|
||||
- QueueName: local-queue4 # Queue name
|
||||
Raw: true # Raw message delivery (true/false)
|
||||
#FilterPolicy: '{"foo": ["bar"]}' # Subscription's FilterPolicy, json object as a string
|
||||
- Name: local-topic2 # Topic name - no Subscriptions
|
||||
- Name: local-topic3 # Topic name - http subscription
|
||||
Subscriptions:
|
||||
- Protocol: https
|
||||
EndPoint: https://enkrogwitfcgi.x.pipedream.net
|
||||
TopicArn: arn:aws:sns:us-east-1:100010001000:local-topic2
|
||||
FilterPolicy: '{"event": ["my_event"]}'
|
||||
Raw: true
|
||||
- Name: local-topic4
|
||||
RandomLatency: # Parameters for introducing random latency into message queuing
|
||||
Min: 0 # Desired latency in milliseconds, if min and max are zero, no latency will be applied.
|
||||
Max: 0 # Desired latency in milliseconds
|
||||
|
||||
Dev: # Another environment
|
||||
Host: localhost
|
||||
Port: 4100
|
||||
# SqsPort: 9324
|
||||
# SnsPort: 9292
|
||||
AccountId: "794373491471"
|
||||
LogToFile: false
|
||||
LogFile: ./goaws_messages.log
|
||||
Queues:
|
||||
- Name: dev-queue1
|
||||
- Name: dev-queue2
|
||||
Topics:
|
||||
- Name: dev-topic1
|
||||
Subscriptions:
|
||||
- QueueName: dev-queue3
|
||||
Raw: false
|
||||
- QueueName: dev-queue4
|
||||
Raw: true
|
||||
- Name: dev-topic2
|
||||
|
||||
Reference in New Issue
Block a user