lift icon indicating copy to clipboard operation
lift copied to clipboard

Could we have ability to export given sqs queue?

Open Setitch opened this issue 2 years ago • 3 comments

Start from the Use-case

I have an issue when in one service i defined queue, but in service derived from it, i need access to one of the queues defined earlier. Would it be possible to add exporting options to the queue(arn mostly) so it would be used in other services?

The structure

service: name1
// here we include lift and make queues
service: name2
// here i would be able to import the queue and be able to use its address in lambdas defined in this file

Example Config

No response

Implementation Idea

queueName:
   type: queue
   worker:
     timeout: 20
     handler: /file.handler
     role: SomeRole
   export:
     name: QueueExportedName

and then in other file, i would like to use Fn::ImportValue (or something) to access exported queue

Setitch avatar Sep 22 '22 07:09 Setitch

You can create a CloudFormation export in the resources section, as usual. I'm not sure it would make sense to reimplement that feature in Lift specifically, I'm not sure it would bring anything more and would only add more options to do the same thing.

mnapoli avatar Sep 22 '22 08:09 mnapoli

Can you please share example for that queueName how to export it outside of the lift?

Setitch avatar Sep 22 '22 08:09 Setitch

But as for why... I think it would be much better looking, if configuration for lift (and its exports) would be done in the same place not in other

Setitch avatar Sep 22 '22 08:09 Setitch