pulumi / examples

Infrastructure, containers, and serverless apps to AWS, Azure, GCP, and Kubernetes... all deployed with Pulumi
https://www.pulumi.com
Apache License 2.0
2.35k stars 878 forks source link

AWS API-based service discovery of SQS queues? #1015

Open opinionmachine opened 3 years ago

opinionmachine commented 3 years ago

I believe I want to create a Service Instance that points to a SQS Queue, and I can’t see a way to do that. I’m using DNSimple, so I don’t want to use DNS-based service discovery, but Cloud Map API looks like it could be enough, but then I need to be able to register an instance. Am I missing something? Could I plug a HttpNamespace into a SQS Queue resource when creating?

lukehoban commented 3 years ago

Could you share any more detail on what you've tried so far here?

A CloudMap based service discovery example would be great to add - but not entirely sure that addresses what you are looking for here?

opinionmachine commented 3 years ago

Well, there are a couple of websites and APIs that talk amongst themselves. I have back-channel communications set up over SQS queues for events, and today I rely on hand creating those queues and finding them from code through naming convention, which isn't exactly high-tech, and it makes it impossible for me to have multiple parallel environments provisioned like the rest of the system. What I think I want to do is to create SQS.Queues and then register the address to those queues as a servicediscovery.Service against a HttpNamespace, but the concept of a servicediscovery.Instance seems to be missing.