Hi all! I have some issues when configuring AWS ...
# general
s
Hi all! I have some issues when configuring AWS Pub sub concept. So what I have configured is that SNS Topic can have multiple queues subscribed to it. However, we can add later on queues that already exist to the SNS Topic and there begins my issue. What we want to achieve is that in case given queue does not exist, it should assign newly created one otherwise just get queue by name. Some of the code is as following: entries.forEach(entry => { const topic = createTopic(entry.topicName); entry.subscriptions.forEach( sub => const queue = getOrCreateQueue(sub.queueName); setupSubscription(topic, queue); ) getOrCreateQueue part is problematic as I can not get it right with aws.sqs.getQueue and new aws.sqs.Queue calls. Any suggestion ? Thx!
r
Gdje si brate napaceni 😄
😂 1
s
E'o borba 😄
r
Jasta je… 😄